summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-09-23 19:09:58 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-09-23 19:09:58 (GMT)
commitc22be34fb79588fa04a9cf9c86438c8eb00d81fc (patch)
tree0321ce1f31da9b058359f7ea457e3daf4073e700
parentbc95beac3eca3cda55430e0cde97ba826d3d7400 (diff)
downloadDoxygen-c22be34fb79588fa04a9cf9c86438c8eb00d81fc.zip
Doxygen-c22be34fb79588fa04a9cf9c86438c8eb00d81fc.tar.gz
Doxygen-c22be34fb79588fa04a9cf9c86438c8eb00d81fc.tar.bz2
Bug 736387 - [PATCH] Fix a potential null pointer dereference in src/index.cpp
-rw-r--r--src/index.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp
index e3bda27..96b0f76 100644
--- a/src/index.cpp
+++ b/src/index.cpp
@@ -800,9 +800,9 @@ static void writeDirHierarchy(OutputList &ol, FTVHelp* ftv,bool addToIndex)
static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started,FTVHelp* ftv,bool addToIndex)
{
ClassSDict::Iterator cli(*cl);
- for (;cli.current(); ++cli)
+ ClassDef *cd;
+ for (;(cd=cli.current());++cli)
{
- ClassDef *cd=cli.current();
//printf("class %s hasVisibleRoot=%d isVisibleInHierarchy=%d\n",
// cd->name().data(),
// hasVisibleRoot(cd->baseClasses()),