This commit is contained in:
Enno Rehling 2010-06-08 21:46:19 -07:00
parent 9cc2814fb0
commit e8a77607b4

View file

@ -111,7 +111,6 @@ parse_args(int argc, char **argv, int *exitcode)
} }
if (run_tests) { if (run_tests) {
init_resources();
*exitcode = RunAllTests(); *exitcode = RunAllTests();
return 1; return 1;
} }
@ -247,8 +246,6 @@ int main(int argc, char ** argv)
setup_signal_handler(); setup_signal_handler();
log_open("eressea.log");
locale_init();
parse_config(inifile); parse_config(inifile);
err = parse_args(argc, argv, &result); err = parse_args(argc, argv, &result);
@ -256,6 +253,9 @@ int main(int argc, char ** argv)
return result; return result;
} }
log_open("eressea.log");
locale_init();
#ifdef CRTDBG #ifdef CRTDBG
init_crtdbg(); init_crtdbg();
#endif #endif