Skip to content

Commit

Permalink
Bug 736018 - [PATCH] Fix potential null pointer dereference in src/db…
Browse files Browse the repository at this point in the history
…usxmlscanner.cpp
  • Loading branch information
Dimitri van Heesch committed Sep 23, 2014
1 parent be0c23e commit 46e83b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbusxmlscanner.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 46e83b4

Please sign in to comment.