Commit e59d8c93 authored by Max Kellermann's avatar Max Kellermann

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

Avoid appending to an obsolete string object.
parent 06166676
...@@ -45,6 +45,8 @@ public: ...@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment