summaryrefslogtreecommitdiff
path: root/valid.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-10-26 21:53:55 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-10-26 21:53:55 +0000
commit95ddcd326694de324a41a73d407d72604dd746d1 (patch)
treee11a747dddd3f452dd28eb9d18b150adb6ceb419 /valid.c
parent03a53c34db279cbe4a305d58969beb1f26ff3d19 (diff)
downloadlibxml2-95ddcd326694de324a41a73d407d72604dd746d1.tar.gz
applied fixes for a couple of potential security problems more fixes on
* nanoftp.c: applied fixes for a couple of potential security problems * tree.c valid.c xmllint.c: more fixes on the string interning checks Daniel
Diffstat (limited to 'valid.c')
-rw-r--r--valid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/valid.c b/valid.c
index 2ce83b13..b8539929 100644
--- a/valid.c
+++ b/valid.c
@@ -6697,8 +6697,7 @@ xmlValidGetValidElements(xmlNode *prev, xmlNode *next, const xmlChar **names,
/*
* Creates a dummy node and insert it into the tree
*/
- test_node = xmlNewNode (NULL, BAD_CAST "<!dummy?>");
- test_node->doc = ref_node->doc;
+ test_node = xmlNewDocNode (ref_node->doc, NULL, BAD_CAST "<!dummy?>", NULL);
test_node->parent = parent;
test_node->prev = prev;
test_node->next = next;