Index: client/settings.cc |
diff --git a/client/settings.cc b/client/settings.cc |
index ca101d2d89dc2ae17cf287381428dace2e5a8f72..b4e5f434b44e12a60e85a46665c585d0774d7df9 100644 |
--- a/client/settings.cc |
+++ b/client/settings.cc |
@@ -216,7 +216,7 @@ bool Settings::WriteSettings(FileHandle handle, const Data& data) { |
bool Settings::RecoverSettings(FileHandle handle, Data* out_data) { |
ScopedFileHandle scoped_handle; |
if (handle == kInvalidFileHandle) { |
- scoped_handle.reset(OpenForReadingAndWriting().release()); |
+ scoped_handle = OpenForReadingAndWriting(); |
handle = scoped_handle.get(); |
// Test if the file has already been recovered now that the exclusive lock |