commit | f967b904c2592a8698fa408fd390740bfed1cd5d | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Mon Jan 17 16:06:10 2000 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Mon Jan 17 16:06:10 2000 +0000 |
tree | 4d4a9b56912081da989cd69cb15cbb49fbc68ab7 | |
parent | ad8f99df6b4a7a1d0b80cd0c7f7f3385165051dd [diff] [blame] |
Fixed a hideous bu in xmlGetProp, reported by Rune.Djurhuus@fast.no, Daniel.
diff --git a/tree.c b/tree.c index 7616f1b..db2b5d2 100644 --- a/tree.c +++ b/tree.c
@@ -3398,7 +3398,8 @@ 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);