[libxml2] error.c: *input->cur == 0 does not mean no error
- From: Daniel Veillard <veillard src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] error.c: *input->cur == 0 does not mean no error
- Date: Fri, 8 Apr 2016 02:56:21 +0000 (UTC)
commit c4184ba217009798504ca25f011ed7899ac1f65f
Author: Pavel Raiskup <praiskup redhat com>
Date: Tue Dec 1 13:24:44 2015 +0100
error.c: *input->cur == 0 does not mean no error
Complements: ce0b0d0d81fdbb5
error.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/error.c b/error.c
index 9c45040..4ca6838 100644
--- a/error.c
+++ b/error.c
@@ -177,8 +177,8 @@ xmlParserPrintFileContextInternal(xmlParserInputPtr input ,
xmlChar content[81]; /* space for 80 chars + line terminator */
xmlChar *ctnt;
- if ((input == NULL) || (input->cur == NULL) ||
- (*input->cur == 0)) return;
+ if ((input == NULL) || (input->cur == NULL))
+ return;
cur = input->cur;
base = input->base;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]