1
0
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:
Daniel Veillard
1999-02-08 18:34:36 +00:00
parent 6800ef354b
commit 6817893591

3
tree.c
View File

@ -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);