summaryrefslogtreecommitdiffstats
path: root/src/vhdljjparser.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-08-18 19:07:17 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-08-18 19:07:17 (GMT)
commit48ced3ea8071b3141216482e2821e10250910947 (patch)
tree547a30cd6cc5015b3e85170cd944e14224e7ae9c /src/vhdljjparser.cpp
parent625e7a17bc708a32d52158ac24e7308c9d62fe84 (diff)
downloadDoxygen-48ced3ea8071b3141216482e2821e10250910947.zip
Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.gz
Doxygen-48ced3ea8071b3141216482e2821e10250910947.tar.bz2
Fixed various issues found by PVS-Studio.
Diffstat (limited to 'src/vhdljjparser.cpp')
-rw-r--r--src/vhdljjparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vhdljjparser.cpp b/src/vhdljjparser.cpp
index ea43341..acef592 100644
--- a/src/vhdljjparser.cpp
+++ b/src/vhdljjparser.cpp
@@ -407,7 +407,10 @@ void VhdlParser::addCompInst(const char *n, const char* instName, const char* co
current->type=instName; // foo:instname e.g proto or work. proto(ttt)
current->exception=genLabels.lower(); // |arch|label1:label2...
current->name=n; // foo
- current->args=lastCompound->name; // architecture name
+ if (lastCompound)
+ {
+ current->args=lastCompound->name; // architecture name
+ }
current->includeName=comp; // component/enity/configuration
int u=genLabels.find("|",1);
if (u>0)