klocwork; fix uninitialized struct member. FN ticket: #10573
This commit is contained in:
parent
872bd44c58
commit
d50e771a38
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue