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:
3
xpath.c
3
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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user