diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 14:44:06 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-18 14:44:06 +0100 |
commit | e569f82dd33ff0f7488e34bbb7e46d601c1ed672 (patch) | |
tree | ca2ce23c758d8826360c7d4d3fdaee5a85d99478 /src/db/upnp | |
parent | 1a4940bbdac58dc0bf47e9ebb5128b52f512bac8 (diff) | |
download | mpd-e569f82dd33ff0f7488e34bbb7e46d601c1ed672.tar.gz mpd-e569f82dd33ff0f7488e34bbb7e46d601c1ed672.tar.xz mpd-e569f82dd33ff0f7488e34bbb7e46d601c1ed672.zip |
db/upnp: merge duplicate nullptr check
Diffstat (limited to 'src/db/upnp')
-rw-r--r-- | src/db/upnp/ixmlwrap.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |