Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
ce0b0d0d
Commit
ce0b0d0d
authored
Nov 20, 2015
by
Daniel Veillard
Browse files
Do not print error context when there is none
Which now happens more frequently du to xmlHaltParser use
parent
e3b15974
Changes
1
Hide whitespace changes
Inline
Side-by-side
error.c
View file @
ce0b0d0d
...
...
@@ -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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment