summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Regel <andreas.regel@newayselectronics.com>2017-12-04 07:34:17 (GMT)
committerAndreas Regel <andreas.regel@newayselectronics.com>2017-12-04 07:34:17 (GMT)
commit52fb4cd5bb085960476e0cd256cc81db1370839d (patch)
tree0bcdb834702b0aff58d9faad45f91da64b46b1db /src
parent4f45bd20d4da7d40c793ec4c4c13558581e995ac (diff)
downloadDoxygen-52fb4cd5bb085960476e0cd256cc81db1370839d.zip
Doxygen-52fb4cd5bb085960476e0cd256cc81db1370839d.tar.gz
Doxygen-52fb4cd5bb085960476e0cd256cc81db1370839d.tar.bz2
Fix not initialized pointer when parser is starting on a new file.
The pointer oldEntry holds the last value of VhdlParser::current and is compared to detect comment blocks that belong together. This could lead to false positives when a new file is parsed and the new entry in VhdlParser::current has by change the same pointer value as the old entry. Doxygen warning like "warning: Found unknown command `\brief'" are the consequence that leads to concatenated brief and detailed description in the resulting output.
Diffstat (limited to 'src')
-rw-r--r--src/vhdljjparser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp
index fdba5e2..953cd6b 100644
--- a/src/vhdljjparser.cpp
+++ b/src/vhdljjparser.cpp
@@ -196,6 +196,7 @@ void VHDLLanguageScanner::parseInput(const char *fileName,const char *fileBuf,En
VhdlParser::lastEntity=0;
VhdlParser::currentCompound=0;
VhdlParser::lastEntity=0;
+ oldEntry = 0;
VhdlParser::current=new Entry();
VhdlParser::initEntry(VhdlParser::current);
groupEnterFile(fileName,yyLineNr);