mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 13:29:21 +03:00
Fix 1559653.
svn path=/trunk/netsurf/; revision=2959
This commit is contained in:
parent
09d2b99973
commit
a1b6005497
@ -235,8 +235,13 @@ bool imagemap_extract(xmlNode *node, struct content *c)
|
||||
|
||||
if (node->type == XML_ELEMENT_NODE) {
|
||||
if (strcmp(node->name, "map") == 0) {
|
||||
if ((name = (char*)xmlGetProp(node, (const xmlChar*)"name")) == NULL)
|
||||
return true;
|
||||
if ((name = (char *)xmlGetProp(node,
|
||||
(const xmlChar *)"id")) == NULL) {
|
||||
if ((name = (char *)xmlGetProp(node,
|
||||
(const xmlChar *)"name")) ==
|
||||
NULL)
|
||||
return true;
|
||||
}
|
||||
if (!imagemap_extract_map(node, c, &entry)) {
|
||||
xmlFree(name);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user