summaryrefslogtreecommitdiffstats
path: root/src/definition.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2018-09-12 16:41:33 (GMT)
committeralbert-github <albert.tests@gmail.com>2018-09-12 16:41:33 (GMT)
commit0a4b995cdd7735aaf42c423eed2889db5b8617ef (patch)
treeeccba7d2c0df00308839ad73cfc06d3afee4c5fd /src/definition.cpp
parentaca45fd514cadc56ac277bd54f49604708ebbb5d (diff)
downloadDoxygen-0a4b995cdd7735aaf42c423eed2889db5b8617ef.zip
Doxygen-0a4b995cdd7735aaf42c423eed2889db5b8617ef.tar.gz
Doxygen-0a4b995cdd7735aaf42c423eed2889db5b8617ef.tar.bz2
Fixing problem with possible not initialized variable (endless loop in VS 2017 debug)
The not initialized variable `l` caused and endless loop in the VS2017 debug version, variable should not have been used.
Diffstat (limited to 'src/definition.cpp')
-rw-r--r--src/definition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/definition.cpp b/src/definition.cpp
index cbfad94..66387bc 100644
--- a/src/definition.cpp
+++ b/src/definition.cpp
@@ -1633,7 +1633,7 @@ void Definition::writeToc(OutputList &ol, const LocalToc &localToc)
int level=1,l;
char cs[2];
cs[1]='\0';
- bool inLi[5]={ FALSE, FALSE, FALSE, FALSE };
+ bool inLi[5]={ FALSE, FALSE, FALSE, FALSE, FALSE };
for (li.toFirst();(si=li.current());++li)
{
if (si->type==SectionInfo::Section ||