Fixed crash when --errorlist is given (#3711)

This commit is contained in:
PKEuS 2012-04-08 10:05:44 +02:00
parent f5bba510b3
commit e8a458edde
1 changed files with 4 additions and 3 deletions

View File

@ -147,13 +147,14 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
Preprocessor::missingIncludeFlag = false; Preprocessor::missingIncludeFlag = false;
CppCheck cppCheck(*this, true); CppCheck cppCheck(*this, true);
if (!parseFromArgs(&cppCheck, argc, argv)) {
return EXIT_FAILURE;
}
Settings& settings = cppCheck.settings(); Settings& settings = cppCheck.settings();
_settings = &settings; _settings = &settings;
if (!parseFromArgs(&cppCheck, argc, argv)) {
return EXIT_FAILURE;
}
if (settings.reportProgress) if (settings.reportProgress)
time1 = std::time(0); time1 = std::time(0);