From 8c357d58c2d1dde022b67393a47dcb52100ce129 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 3 Jul 2001 23:43:33 +0000 Subject: [PATCH] - xpath.c: fixed a missing copy in xmlXPathVariableLookupNS() raised by Mark Vakoc. Daniel --- ChangeLog | 5 +++++ xpath.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2631ee38..9afee55e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jul 4 01:42:01 CEST 2001 Daniel Veillard + + * xpath.c: fixed a missing copy in xmlXPathVariableLookupNS() + raised by Mark Vakoc. + Tue Jul 3 18:35:48 CEST 2001 Daniel Veillard * example/Makefile.am: fixed the include path to add srcdir/include diff --git a/xpath.c b/xpath.c index b795affd..39e05831 100644 --- a/xpath.c +++ b/xpath.c @@ -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))); } /**