summaryrefslogtreecommitdiff
path: root/ext/dom/node.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dom/node.c')
-rw-r--r--ext/dom/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/node.c b/ext/dom/node.c
index 7ba321c2ce..27ea74daa3 100644
--- a/ext/dom/node.c
+++ b/ext/dom/node.c
@@ -64,7 +64,7 @@ static void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep) {
if (nodep->nsDef != NULL && nodep->nsDef->href != NULL) {
if((nsptr = xmlSearchNsByHref(doc, nodep->parent, nodep->nsDef->href)) &&
(nodep->nsDef->prefix == NULL || xmlStrEqual(nsptr->prefix, nodep->nsDef->prefix))) {
- dom_set_old_ns(doc, nodep->ns);
+ dom_set_old_ns(doc, nodep->nsDef);
nodep->nsDef = NULL;
}
}