[gtksourceview] Fix innocuos logic error in the parser.
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Fix innocuos logic error in the parser.
- Date: Sat, 6 Nov 2010 17:49:32 +0000 (UTC)
commit 04f811a0a3590e78dfee7015dc36365fad27e3cd
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Nov 6 18:37:29 2010 +0100
Fix innocuos logic error in the parser.
We must check that the returned value is 1, not that the assgment
operation succeeds.
gtksourceview/gtksourcelanguage-parser-2.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtksourceview/gtksourcelanguage-parser-2.c b/gtksourceview/gtksourcelanguage-parser-2.c
index 60ac76b..24a2a02 100644
--- a/gtksourceview/gtksourcelanguage-parser-2.c
+++ b/gtksourceview/gtksourcelanguage-parser-2.c
@@ -1659,8 +1659,8 @@ file_parse (gchar *filename,
(xmlStructuredErrorFunc) text_reader_structured_error_func,
parser_state);
- while (parser_state->error == NULL &&
- (ret = xmlTextReaderRead (parser_state->reader)) == 1)
+ while ((parser_state->error == NULL) &&
+ (1 == xmlTextReaderRead (parser_state->reader)))
{
int type;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]