From 9437e833968c79fcf23ea1d1c54b84988e459270 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 6 Aug 2015 19:10:31 +0000 Subject: Fix error message corruption in BackupDaemon. Was due to accessing the exception's string after it had gone out of scope. --- bin/bbackupd/BackupDaemon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/bbackupd') 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 BackupDaemon::RunSyncNowWithExceptionHandling { bool errorOccurred = false; int errorCode = 0, errorSubCode = 0; - const char* errorString = "unknown"; + std::string errorString = "unknown"; try { -- cgit v1.2.3