Fixed crash when --errorlist is given (#3711)
This commit is contained in:
parent
f5bba510b3
commit
e8a458edde
|
@ -147,13 +147,14 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
|
|||
Preprocessor::missingIncludeFlag = false;
|
||||
|
||||
CppCheck cppCheck(*this, true);
|
||||
if (!parseFromArgs(&cppCheck, argc, argv)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
Settings& settings = cppCheck.settings();
|
||||
_settings = &settings;
|
||||
|
||||
if (!parseFromArgs(&cppCheck, argc, argv)) {
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
if (settings.reportProgress)
|
||||
time1 = std::time(0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue