mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +03:00
Oops, Daniel.
This commit is contained in:
parent
6800ef354b
commit
6817893591
3
tree.c
3
tree.c
@ -2009,12 +2009,13 @@ CHAR *xmlGetProp(xmlNodePtr node, const CHAR *name) {
|
||||
xmlAttrPtr prop = node->properties;
|
||||
|
||||
while (prop != NULL) {
|
||||
if (!xmlStrcmp(prop->name, name))
|
||||
if (!xmlStrcmp(prop->name, name)) {
|
||||
CHAR *ret;
|
||||
|
||||
ret = xmlNodeListGetString(node->doc, prop->val, 1);
|
||||
if (ret == NULL) return(xmlStrdup(""));
|
||||
return(ret);
|
||||
}
|
||||
prop = prop->next;
|
||||
}
|
||||
return(NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user