Permalink
Browse files

Bug 736018 - [PATCH] Fix potential null pointer dereference in src/db…

…usxmlscanner.cpp
  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Sep 23, 2014
1 parent be0c23e commit 46e83b44be0c0aa97ead5ee52e329154c1fb47bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/dbusxmlscanner.cpp
View
@@ -432,7 +432,7 @@ class DBusXMLHandler : public QXmlDefaultHandler
m_currentEnum = 0;
}
if (EXTENSION("value"))
if (EXTENSION("value") && m_currentEnum)
{
CONDITION(!m_currentEntry, "end of value without start");
m_currentEntry->endBodyLine = lineNumber();

0 comments on commit 46e83b4

Please sign in to comment.