diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2014-09-23 19:00:29 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2014-09-23 19:00:29 (GMT) |
commit | 68c063cbffc38c1528dd86232a8b8642fae26b1b (patch) | |
tree | 88761df613cf2fb63829b8c8cd90a614ed06df58 /src/index.cpp | |
parent | 79dedb65ae1f9306b83a69058dbd2015ef7c3b94 (diff) | |
download | Doxygen-68c063cbffc38c1528dd86232a8b8642fae26b1b.zip Doxygen-68c063cbffc38c1528dd86232a8b8642fae26b1b.tar.gz Doxygen-68c063cbffc38c1528dd86232a8b8642fae26b1b.tar.bz2 |
Bug 736022 - [PATCH] Fix potential null pointer dereference in src/index.cpp
Diffstat (limited to 'src/index.cpp')
-rw-r--r-- | src/index.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.cpp b/src/index.cpp index ff347e3..e3bda27 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -923,9 +923,9 @@ static int countClassesInTreeList(const ClassSDict &cl) { int count=0; ClassSDict::Iterator cli(cl); - for (;cli.current(); ++cli) + ClassDef *cd; + for (;(cd=cli.current());++cli) { - ClassDef *cd=cli.current(); if (!hasVisibleRoot(cd->baseClasses())) // filter on root classes { if (cd->isVisibleInHierarchy()) // should it be visible |