Commit e569f82d authored by Max Kellermann's avatar Max Kellermann

db/upnp: merge duplicate nullptr check

parent 1a4940bb
...@@ -34,10 +34,10 @@ getFirstElementValue(IXML_Document *doc, const char *name) ...@@ -34,10 +34,10 @@ getFirstElementValue(IXML_Document *doc, const char *name)
ret = ixmlNode_getNodeValue(dnode); ret = ixmlNode_getNodeValue(dnode);
} }
} }
}
if(nodes)
ixmlNodeList_free(nodes); ixmlNodeList_free(nodes);
}
return ret; return ret;
} }
......
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