diff options
author | Chris Wilson <chris+github@qwirx.com> | 2014-04-12 11:54:03 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2014-04-12 11:54:03 +0000 |
commit | b8cab5e4f0340196cc0c9ad66a64e36697ad13b7 (patch) | |
tree | 6c9612e621a42eab0b9535405f70bdd477d6d7cf | |
parent | 8e09c99c396ca87ac4c9f79a8e2ff8c95c705f37 (diff) |
Initialise sync flags in WaitOnCommandSocket.
Otherwise all callers need to initialise them, or get false positives.
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index a31ae7cd..3dbae4d6 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -1901,6 +1901,9 @@ bool BackupDaemon::RunBackgroundTask(State state, uint64_t progress, // -------------------------------------------------------------------------- void BackupDaemon::WaitOnCommandSocket(box_time_t RequiredDelay, bool &DoSyncFlagOut, bool &SyncIsForcedOut) { + DoSyncFlagOut = false; + SyncIsForcedOut = false; + ASSERT(mapCommandSocketInfo.get()); if(!mapCommandSocketInfo.get()) { |