summaryrefslogtreecommitdiff
path: root/bin/bbackupctl
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-11-13 15:57:20 +0000
committerChris Wilson <chris+github@qwirx.com>2006-11-13 15:57:20 +0000
commite8c11ba2cee087b5da8e9758dbc3bdb3feec5ee7 (patch)
tree9c835a003a90c34b794b7d590f3cbb67d230f45e /bin/bbackupctl
parent61fce5d877e6388c4422950dcabf6b4bd6d39624 (diff)
openlog inside MAINHELPER block, to ensure that any memory leaks will be
caught (refs #3)
Diffstat (limited to 'bin/bbackupctl')
-rw-r--r--bin/bbackupctl/bbackupctl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/bbackupctl/bbackupctl.cpp b/bin/bbackupctl/bbackupctl.cpp
index 4a5ee5a9..09984e12 100644
--- a/bin/bbackupctl/bbackupctl.cpp
+++ b/bin/bbackupctl/bbackupctl.cpp
@@ -56,15 +56,15 @@ int main(int argc, const char *argv[])
{
int returnCode = 0;
-#if defined WIN32 && ! defined NDEBUG
- ::openlog("Box Backup (bbackupctl)", 0, 0);
-#endif
-
MAINHELPER_SETUP_MEMORY_LEAK_EXIT_REPORT("bbackupctl.memleaks",
"bbackupctl")
MAINHELPER_START
+#if defined WIN32 && ! defined NDEBUG
+ ::openlog("Box Backup (bbackupctl)", 0, 0);
+#endif
+
// Filename for configuraiton file?
const char *configFilename = BOX_FILE_BBACKUPD_DEFAULT_CONFIG;