| Index: client/settings.cc
|
| diff --git a/client/settings.cc b/client/settings.cc
|
| index 7f126ad70d12e79d3ae70a4f1cadcd14e4d908d5..6d4640772f8b58fae393286b696277d81dee49c3 100644
|
| --- a/client/settings.cc
|
| +++ b/client/settings.cc
|
| @@ -250,10 +250,12 @@ bool Settings::ReadSettings(FileHandle handle,
|
| return false;
|
|
|
| bool read_result;
|
| - if (log_read_error)
|
| + if (log_read_error) {
|
| read_result = LoggingReadFile(handle, out_data, sizeof(*out_data));
|
| - else
|
| - read_result = ReadFile(handle, out_data, sizeof(*out_data));
|
| + } else {
|
| + read_result =
|
| + ReadFile(handle, out_data, sizeof(*out_data)) == sizeof(*out_data);
|
| + }
|
|
|
| if (!read_result)
|
| return false;
|
|
|