From e569f82dd33ff0f7488e34bbb7e46d601c1ed672 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 18 Jan 2014 14:44:06 +0100 Subject: db/upnp: merge duplicate nullptr check --- src/db/upnp/ixmlwrap.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/db/upnp') diff --git a/src/db/upnp/ixmlwrap.cxx b/src/db/upnp/ixmlwrap.cxx index 247c36d5d..2bc8658a3 100644 --- a/src/db/upnp/ixmlwrap.cxx +++ b/src/db/upnp/ixmlwrap.cxx @@ -34,10 +34,10 @@ getFirstElementValue(IXML_Document *doc, const char *name) ret = ixmlNode_getNodeValue(dnode); } } - } - if(nodes) ixmlNodeList_free(nodes); + } + return ret; } -- cgit v1.2.3