Commit d88258ee authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix coverity CID 88471: Dereference before null check

Null-checking at suggests that it may be null, but it has already been
dereferenced on all paths leading to the check.

CCBUG:340646
parent f626c5f3
......@@ -716,7 +716,7 @@ void AdaWriter::finalizeRun()
continue;
ada << indent() << cleanName(at->name()) << " : "
<< at->getTypeName();
if (at && ! at->getInitialValue().isEmpty() && ! at->getInitialValue().toLatin1().isEmpty())
if (!at->getInitialValue().isEmpty() && !at->getInitialValue().toLatin1().isEmpty())
ada << " := " << at->getInitialValue();
ada << ";" << m_endl;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment