[Box Backup-commit] COMMIT r1811 - box/chris/general/bin/bbackupd

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Thu Sep 6 22:16:08 BST 2007


Author: chris
Date: 2007-09-06 22:16:08 +0100 (Thu, 06 Sep 2007)
New Revision: 1811

Modified:
   box/chris/general/bin/bbackupd/BackupDaemon.cpp
Log:
Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end.


Modified: box/chris/general/bin/bbackupd/BackupDaemon.cpp
===================================================================
--- box/chris/general/bin/bbackupd/BackupDaemon.cpp	2007-09-06 21:10:54 UTC (rev 1810)
+++ box/chris/general/bin/bbackupd/BackupDaemon.cpp	2007-09-06 21:16:08 UTC (rev 1811)
@@ -1821,12 +1821,12 @@
 		}
 		catch (std::exception &e)
 		{
-			delete ploc;
-			ploc = 0;
 			BOX_ERROR("Failed to configure location '"
 				<< ploc->mName << "' path '"
 				<< ploc->mPath << "': " << e.what() <<
 				": please check for previous errors");
+			delete ploc;
+			ploc = 0;
 			throw;
 		}
 		catch(...)




More information about the Boxbackup-commit mailing list