From d4a36aaa93df94b7e2fd4e9f7e7ba323f4a1bb24 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Sun, 1 Feb 2015 15:36:31 +0000 Subject: [PATCH] Fix crash in znc --version, caused by latest commits. Fix #838 --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 85aea28a..1ab54df2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -199,6 +199,7 @@ int main(int argc, char** argv) { #ifdef HAVE_LIBSSL bool bMakePem = false; #endif + CZNC::CreateInstance(); while ((iArg = getopt_long(argc, argv, "hvnrcspd:Df", g_LongOpts, &iOptIndex)) != -1) { switch (iArg) { @@ -252,8 +253,6 @@ int main(int argc, char** argv) { return 1; } - CZNC::CreateInstance(); - CZNC* pZNC = &CZNC::Get(); pZNC->InitDirs(((argc) ? argv[0] : ""), sDataDir);