[tracker] tracker-parser: Fix text parsing involving numbers and hyphens



commit 3922b72032bbbfa0d084dd4013325b1cac09c386
Author: Jürg Billeter <j bitron ch>
Date:   Tue Sep 1 12:04:20 2009 +0200

    tracker-parser: Fix text parsing involving numbers and hyphens
    
    Setting is_valid to FALSE and start to NULL when finding digits or
    hyphens results in ignoring all words following that position.

 src/libtracker-common/tracker-parser.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-common/tracker-parser.c b/src/libtracker-common/tracker-parser.c
index f1479ba..2ab5758 100644
--- a/src/libtracker-common/tracker-parser.c
+++ b/src/libtracker-common/tracker-parser.c
@@ -585,12 +585,10 @@ parser_next (TrackerParser *parser,
 
 			if (type == TRACKER_PARSER_WORD_NUM) {
 				is_valid = FALSE;
-				start = NULL;
 				continue;
 			} else {
 				if (type == TRACKER_PARSER_WORD_HYPHEN) {
 					is_valid = parser->parse_reserved_words;
-					start = NULL;
 					continue;
 				}
 			}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]