commit | ab2a763db86f4862699cdf36764a4f2bd0a2bc69 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Thu Jul 09 08:45:03 2009 +0200 |
committer | Daniel Veillard <veillard@redhat.com> | Thu Jul 09 08:45:03 2009 +0200 |
tree | 5a44a36df92c3fc447bbb032c0e19d5edba102bd | |
parent | bccae2d21038967f5d83109f27b925bcd4795602 [diff] [blame] |
A bit of cleanups * tree.c: avoid calling xmlAddID with NULL values * parser.c: add a few xmlInitParser in some entry points
diff --git a/tree.c b/tree.c index be5c6b9..6d0e95b 100644 --- a/tree.c +++ b/tree.c
@@ -1860,7 +1860,8 @@ } } - if (xmlIsID((node == NULL) ? NULL : node->doc, node, cur) == 1) + if ((value != NULL) && + (xmlIsID((node == NULL) ? NULL : node->doc, node, cur) == 1)) xmlAddID(NULL, node->doc, value, cur); if ((__xmlRegisterCallbacks) && (xmlRegisterNodeDefaultValue))