Skip to content

Commit 39409fa

Browse files
committed
Coverity warnings
Remove coverity warnings CID 896127 (dotrunner.cpp) and 896849 (symbolresolver.cpp)
1 parent 7f77fa4 commit 39409fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dotrunner.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ static void checkPngResult(const QCString &imgName)
7979
if (fread(data, 1, 4, f) != 4)
8080
{
8181
err("Could not read image '{}' generated by dot!\n",imgName);
82+
fclose(f);
8283
return;
8384
}
8485

src/symbolresolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ const Definition *SymbolResolver::Private::getResolvedSymbolRec(
539539
if (d->definitionType()==Definition::TypeMember)
540540
{
541541
const MemberDef *emd = dynamic_cast<const MemberDef *>(d);
542-
if (emd->isEnumValue() && emd->getEnumScope() && emd->getEnumScope()->isStrong() && explicitScopePart.isEmpty())
542+
if (emd && emd->isEnumValue() && emd->getEnumScope() && emd->getEnumScope()->isStrong() && explicitScopePart.isEmpty())
543543
{
544544
// skip lookup for strong enum values without explicit scope, see issue #11799
545545
continue;

0 commit comments

Comments
 (0)