Commit 7a268f59 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Bug 735477 - [PATCH] Fix a potential null pointer dereference in src/memberdef.cpp

parent e2691816
...@@ -3784,7 +3784,7 @@ void MemberDef::writeEnumDeclaration(OutputList &typeDecl, ...@@ -3784,7 +3784,7 @@ void MemberDef::writeEnumDeclaration(OutputList &typeDecl,
{ {
MemberListIterator mli(*fmdl); MemberListIterator mli(*fmdl);
MemberDef *fmd=mli.current(); MemberDef *fmd=mli.current();
bool fmdVisible = fmd->isBriefSectionVisible(); bool fmdVisible = fmd ? fmd->isBriefSectionVisible() : TRUE;
while (fmd) while (fmd)
{ {
if (fmdVisible) if (fmdVisible)
......
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