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);