1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-19 09:57:23 +03:00

Fixed a hideous bu in xmlGetProp, reported by Rune.Djurhuus@fast.no, Daniel.

This commit is contained in:
Daniel Veillard 2000-01-17 16:06:10 +00:00
parent ad8f99df6b
commit f967b904c2
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Mon Jan 17 17:04:12 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* tree.c: fixed a hideous bug in xmlGetProp() thanks to
Rune.Djurhuus@fast.no
Sat Jan 15 15:09:06 CET 2000 Daniel Veillard <Daniel.Veillard@w3.org>
* TODO: updated

3
tree.c
View File

@ -3398,7 +3398,8 @@ xmlGetProp(xmlNodePtr node, const xmlChar *name) {
attrDecl = xmlGetDtdAttrDesc(doc->intSubset, node->name, name);
if ((attrDecl == NULL) && (doc->extSubset != NULL))
attrDecl = xmlGetDtdAttrDesc(doc->extSubset, node->name, name);
return(xmlStrdup(attrDecl->defaultValue));
if (attrDecl != NULL)
return(xmlStrdup(attrDecl->defaultValue));
}
}
return(NULL);