Skip to content

Commit e8a458e

Browse files
committed
Fixed crash when --errorlist is given (cppcheck-opensource#3711)
1 parent f5bba51 commit e8a458e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

cli/cppcheckexecutor.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,14 @@ int CppCheckExecutor::check(int argc, const char* const argv[])
147147
Preprocessor::missingIncludeFlag = false;
148148

149149
CppCheck cppCheck(*this, true);
150-
if (!parseFromArgs(&cppCheck, argc, argv)) {
151-
return EXIT_FAILURE;
152-
}
153150

154151
Settings& settings = cppCheck.settings();
155152
_settings = &settings;
156153

154+
if (!parseFromArgs(&cppCheck, argc, argv)) {
155+
return EXIT_FAILURE;
156+
}
157+
157158
if (settings.reportProgress)
158159
time1 = std::time(0);
159160

0 commit comments

Comments
 (0)