mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-13 12:59:29 +03:00
Do not print error context when there is none
Which now happens more frequently du to xmlHaltParser use
This commit is contained in:
4
error.c
4
error.c
@ -177,7 +177,9 @@ xmlParserPrintFileContextInternal(xmlParserInputPtr input ,
|
|||||||
xmlChar content[81]; /* space for 80 chars + line terminator */
|
xmlChar content[81]; /* space for 80 chars + line terminator */
|
||||||
xmlChar *ctnt;
|
xmlChar *ctnt;
|
||||||
|
|
||||||
if (input == NULL) return;
|
if ((input == NULL) || (input->cur == NULL) ||
|
||||||
|
(*input->cur == 0)) return;
|
||||||
|
|
||||||
cur = input->cur;
|
cur = input->cur;
|
||||||
base = input->base;
|
base = input->base;
|
||||||
/* skip backwards over any end-of-lines */
|
/* skip backwards over any end-of-lines */
|
||||||
|
Reference in New Issue
Block a user