Commit ce0b0d0d authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Do not print error context when there is none

Which now happens more frequently du to xmlHaltParser use
parent e3b15974
......@@ -177,7 +177,9 @@ xmlParserPrintFileContextInternal(xmlParserInputPtr input ,
xmlChar content[81]; /* space for 80 chars + line terminator */
xmlChar *ctnt;
if (input == NULL) return;
if ((input == NULL) || (input->cur == NULL) ||
(*input->cur == 0)) return;
cur = input->cur;
base = input->base;
/* skip backwards over any end-of-lines */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment