mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-21 14:53:44 +03:00
Don't call xmlXPathInit directly
Call xmlInitParser which uses a lock to avoid race conditions. Fixes #184.
This commit is contained in:
@@ -1352,7 +1352,7 @@ xmlXPtrEval(const xmlChar *str, xmlXPathContextPtr ctx) {
|
||||
xmlXPathObjectPtr init = NULL;
|
||||
int stack = 0;
|
||||
|
||||
xmlXPathInit();
|
||||
xmlInitParser();
|
||||
|
||||
if ((ctx == NULL) || (str == NULL))
|
||||
return(NULL);
|
||||
|
Reference in New Issue
Block a user