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