mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
closing bug #29260, Daniel
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
Wed Oct 25 12:11:03 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||||
|
|
||||||
|
* xpath.c: closing bug #29260
|
||||||
|
|
||||||
Tue Oct 24 18:49:34 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
|
Tue Oct 24 18:49:34 CEST 2000 Daniel Veillard <Daniel.Veillard@w3.org>
|
||||||
|
|
||||||
* hash.[ch] debugXML.c: expanded/enhanced the API, added
|
* hash.[ch] debugXML.c: expanded/enhanced the API, added
|
||||||
|
9
xpath.c
9
xpath.c
@ -1216,11 +1216,11 @@ xmlXPathFreeContext(xmlXPathContextPtr ctxt) {
|
|||||||
fprintf(xmlXPathDebug, "%s:%d Internal error: no context\n", \
|
fprintf(xmlXPathDebug, "%s:%d Internal error: no context\n", \
|
||||||
__FILE__, __LINE__); \
|
__FILE__, __LINE__); \
|
||||||
} \
|
} \
|
||||||
if (ctxt->doc == NULL) { \
|
else if (ctxt->doc == NULL) { \
|
||||||
fprintf(xmlXPathDebug, "%s:%d Internal error: no document\n", \
|
fprintf(xmlXPathDebug, "%s:%d Internal error: no document\n", \
|
||||||
__FILE__, __LINE__); \
|
__FILE__, __LINE__); \
|
||||||
} \
|
} \
|
||||||
if (ctxt->doc->children == NULL) { \
|
else if (ctxt->doc->children == NULL) { \
|
||||||
fprintf(xmlXPathDebug, \
|
fprintf(xmlXPathDebug, \
|
||||||
"%s:%d Internal error: document without root\n", \
|
"%s:%d Internal error: document without root\n", \
|
||||||
__FILE__, __LINE__); \
|
__FILE__, __LINE__); \
|
||||||
@ -5143,10 +5143,11 @@ xmlXPathEval(const xmlChar *str, xmlXPathContextPtr ctx) {
|
|||||||
|
|
||||||
xmlXPathInit();
|
xmlXPathInit();
|
||||||
|
|
||||||
CHECK_CONTEXT(ctx)
|
|
||||||
|
|
||||||
if (xmlXPathDebug == NULL)
|
if (xmlXPathDebug == NULL)
|
||||||
xmlXPathDebug = stderr;
|
xmlXPathDebug = stderr;
|
||||||
|
|
||||||
|
CHECK_CONTEXT(ctx)
|
||||||
|
|
||||||
ctxt = xmlXPathNewParserContext(str, ctx);
|
ctxt = xmlXPathNewParserContext(str, ctx);
|
||||||
if (ctx->node != NULL) {
|
if (ctx->node != NULL) {
|
||||||
init = xmlXPathNewNodeSet(ctx->node);
|
init = xmlXPathNewNodeSet(ctx->node);
|
||||||
|
Reference in New Issue
Block a user