Commit e21aaadb authored by Dimitri van Heesch's avatar Dimitri van Heesch

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

parent 1e8a6990
...@@ -444,7 +444,7 @@ SearchIndexExternal::~SearchIndexExternal() ...@@ -444,7 +444,7 @@ SearchIndexExternal::~SearchIndexExternal()
static QCString definitionToName(Definition *ctx) static QCString definitionToName(Definition *ctx)
{ {
if (ctx->definitionType()==Definition::TypeMember) if (ctx && ctx->definitionType()==Definition::TypeMember)
{ {
MemberDef *md = (MemberDef*)ctx; MemberDef *md = (MemberDef*)ctx;
if (md->isFunction()) if (md->isFunction())
......
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