db/upnp/Device: clear the "value" pointer on unknown element
Avoid appending to an obsolete string object.
This commit is contained in:
parent
0616667688
commit
e59d8c9378
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user