1
0
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:
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;
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);