aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-18 14:44:06 +0100
committerMax Kellermann <max@duempel.org>2014-01-18 14:44:06 +0100
commite569f82dd33ff0f7488e34bbb7e46d601c1ed672 (patch)
treeca2ce23c758d8826360c7d4d3fdaee5a85d99478 /src/db/upnp
parent1a4940bbdac58dc0bf47e9ebb5128b52f512bac8 (diff)
downloadmpd-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.cxx4
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;
}