diff options
author | Max Kellermann <max@duempel.org> | 2014-01-22 19:20:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-22 19:38:02 +0100 |
commit | e59d8c9378d8bdf1fcd60b26b366eae11559ee17 (patch) | |
tree | 27a6efb9e95484f93a95154506e850ae68e318ea /src/db/upnp | |
parent | 06166676885fc137301078cf880bad466f09a33a (diff) | |
download | mpd-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.cxx | 2 |
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) |