aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/upnp
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-22 19:20:43 +0100
committerMax Kellermann <max@duempel.org>2014-01-22 19:38:02 +0100
commite59d8c9378d8bdf1fcd60b26b366eae11559ee17 (patch)
tree27a6efb9e95484f93a95154506e850ae68e318ea /src/db/upnp
parent06166676885fc137301078cf880bad466f09a33a (diff)
downloadmpd-e59d8c9378d8bdf1fcd60b26b366eae11559ee17.tar.gz
mpd-e59d8c9378d8bdf1fcd60b26b366eae11559ee17.tar.xz
mpd-e59d8c9378d8bdf1fcd60b26b366eae11559ee17.zip
db/upnp/Device: clear the "value" pointer on unknown element
Avoid appending to an obsolete string object.
Diffstat (limited to 'src/db/upnp')
-rw-r--r--src/db/upnp/Device.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db/upnp/Device.cxx b/src/db/upnp/Device.cxx
index dd1a8f43c..2dab1b4c5 100644
--- a/src/db/upnp/Device.cxx
+++ b/src/db/upnp/Device.cxx
@@ -45,6 +45,8 @@ public:
protected:
virtual void StartElement(const XML_Char *name, const XML_Char **) {
+ value = nullptr;
+
switch (name[0]) {
case 'c':
if (strcmp(name, "controlURL") == 0)