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:
parent
ad8f99df6b
commit
f967b904c2
@ -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
3
tree.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user