mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-23 01:52:48 +03:00
on linux/gcc use weak definitions to avoid linking with pthread library on
* Makefile.am configure.in threads.c: on linux/gcc use weak definitions to avoid linking with pthread library on non-threaded environments. * xpath.c: applied patch from Mark Vakoc w.r.t. a buggy namespace list allocation. Daniel
This commit is contained in:
2
xpath.c
2
xpath.c
@@ -11300,7 +11300,7 @@ xmlXPathTryStreamCompile(xmlXPathContextPtr ctxt, const xmlChar *str) {
|
||||
if (ctxt != NULL) {
|
||||
dict = ctxt->dict;
|
||||
if (ctxt->nsNr > 0) {
|
||||
namespaces = xmlMalloc(2 * (ctxt->nsNr + 1));
|
||||
namespaces = xmlMalloc(2 * (ctxt->nsNr + 1) * sizeof(xmlChar*));
|
||||
if (namespaces == NULL) {
|
||||
xmlXPathErrMemory(ctxt, "allocating namespaces array\n");
|
||||
return(NULL);
|
||||
|
Reference in New Issue
Block a user