Commit a4c77a77 authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix null dereference UniXML::nextNode (CID 22707)

parent e4f88aa4
......@@ -246,13 +246,13 @@ xmlNode* UniXML::nextNode(xmlNode* n)
if (n->next)
return n->next;
for(; n->parent && !n->next && n;)
for(; n && n->parent && !n->next;)
n = n->parent;
if (n->next)
if (n && n->next)
n = n->next;
if (!n->name)
if (n && !n->name)
n = 0;
return n;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment