1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-30 22:43:14 +03:00

- xpath.c: fixed a missing copy in xmlXPathVariableLookupNS()

raised by Mark Vakoc.
Daniel
This commit is contained in:
Daniel Veillard
2001-07-03 23:43:33 +00:00
parent 6e90d19693
commit 8c357d58c2
2 changed files with 7 additions and 1 deletions

View File

@ -1951,7 +1951,8 @@ xmlXPathVariableLookupNS(xmlXPathContextPtr ctxt, const xmlChar *name,
if (name == NULL)
return(NULL);
return((xmlXPathObjectPtr) xmlHashLookup2(ctxt->varHash, name, ns_uri));
return(xmlXPathObjectCopy((xmlXPathObjectPtr)
xmlHashLookup2(ctxt->varHash, name, ns_uri)));
}
/**