Skip to content

Commit

Permalink
Bug 735483 - [PATCH] Fix a potential null pointer dereference in src/…
Browse files Browse the repository at this point in the history
…searchindex.cpp
  • Loading branch information
Dimitri van Heesch committed Aug 30, 2014
1 parent 1e8a699 commit e21aaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/searchindex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ SearchIndexExternal::~SearchIndexExternal()

static QCString definitionToName(Definition *ctx)
{
if (ctx->definitionType()==Definition::TypeMember)
if (ctx && ctx->definitionType()==Definition::TypeMember)
{
MemberDef *md = (MemberDef*)ctx;
if (md->isFunction())
Expand Down

0 comments on commit e21aaad

Please sign in to comment.