db/upnp: merge duplicate nullptr check
This commit is contained in:
parent
1a4940bbda
commit
e569f82dd3
|
@ -34,10 +34,10 @@ getFirstElementValue(IXML_Document *doc, const char *name)
|
|||
ret = ixmlNode_getNodeValue(dnode);
|
||||
}
|
||||
}
|
||||
|
||||
ixmlNodeList_free(nodes);
|
||||
}
|
||||
|
||||
if(nodes)
|
||||
ixmlNodeList_free(nodes);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue