Skip to content

Commit 03ecb98

Browse files
committed
Small refactoring of stacktrace printing code
1 parent 87ce88d commit 03ecb98

3 files changed

Lines changed: 126 additions & 125 deletions

File tree

cli/cmdlineparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ bool CmdLineParser::ParseFromArgs(int argc, const char* const argv[])
146146
else if (std::strncmp(argv[i], "--exception-handling=", 21) == 0) {
147147
_settings->exceptionHandling = true;
148148
const std::string exceptionOutfilename = &(argv[i][21]);
149-
CppCheckExecutor::setExceptionOutput(exceptionOutfilename);
149+
CppCheckExecutor::setExceptionOutput((exceptionOutfilename=="stderr") ? stderr : stdout);
150150
}
151151

152152
// Inconclusive checking

0 commit comments

Comments
 (0)