db/upnp: merge duplicate nullptr check

This commit is contained in:
Max Kellermann 2014-01-18 14:44:06 +01:00
parent 1a4940bbda
commit e569f82dd3
1 changed files with 2 additions and 2 deletions

View File

@ -34,10 +34,10 @@ getFirstElementValue(IXML_Document *doc, const char *name)
ret = ixmlNode_getNodeValue(dnode); ret = ixmlNode_getNodeValue(dnode);
} }
} }
ixmlNodeList_free(nodes);
} }
if(nodes)
ixmlNodeList_free(nodes);
return ret; return ret;
} }