klocwork; fix uninitialized struct member. FN ticket: #10573

This commit is contained in:
Daniel Marjamäki 2021-10-28 17:09:33 +02:00
parent 872bd44c58
commit d50e771a38
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,8 @@ Suppressions::ErrorMessage ErrorMessage::toSuppressionsErrorMessage() const
if (!callStack.empty()) { if (!callStack.empty()) {
ret.setFileName(callStack.back().getfile(false)); ret.setFileName(callStack.back().getfile(false));
ret.lineNumber = callStack.back().line; ret.lineNumber = callStack.back().line;
} else {
ret.lineNumber = Suppressions::Suppression::NO_LINE;
} }
ret.certainty = certainty; ret.certainty = certainty;
ret.symbolNames = mSymbolNames; ret.symbolNames = mSymbolNames;