diff options
author | Chris Wilson <chris+github@qwirx.com> | 2015-08-06 19:10:31 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2015-08-06 19:10:31 +0000 |
commit | 9437e833968c79fcf23ea1d1c54b84988e459270 (patch) | |
tree | 98e949ade837f6a293989d2a46eb7c564a68bde5 /bin/bbackupd | |
parent | 21eb91c014ecfb4fda74bb04d7b99174fb9d515e (diff) |
Fix error message corruption in BackupDaemon.
Was due to accessing the exception's string after it had gone out of scope.
Diffstat (limited to 'bin/bbackupd')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index 931934fd..03ce7454 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -774,7 +774,7 @@ std::auto_ptr<BackupClientContext> BackupDaemon::RunSyncNowWithExceptionHandling { bool errorOccurred = false; int errorCode = 0, errorSubCode = 0; - const char* errorString = "unknown"; + std::string errorString = "unknown"; try { |