db/upnp/Device: clear the "value" pointer on unknown element

Avoid appending to an obsolete string object.
This commit is contained in:
Max Kellermann 2014-01-22 19:20:43 +01:00
parent 0616667688
commit e59d8c9378

View File

@ -45,6 +45,8 @@ public:
protected: protected:
virtual void StartElement(const XML_Char *name, const XML_Char **) { virtual void StartElement(const XML_Char *name, const XML_Char **) {
value = nullptr;
switch (name[0]) { switch (name[0]) {
case 'c': case 'c':
if (strcmp(name, "controlURL") == 0) if (strcmp(name, "controlURL") == 0)