[tracker] tracker-parser: skip empty strings in parser_next
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-parser: skip empty strings in parser_next
- Date: Mon, 23 Nov 2009 13:11:28 +0000 (UTC)
commit 6c7f2f3c673c2df15b308fcb77b2579d094aa7d7
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date: Mon Nov 23 13:41:40 2009 +0100
tracker-parser: skip empty strings in parser_next
This fixes a crash in tracker-store.
src/libtracker-fts/tracker-parser.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-fts/tracker-parser.c b/src/libtracker-fts/tracker-parser.c
index de059fa..c1161d1 100644
--- a/src/libtracker-fts/tracker-parser.c
+++ b/src/libtracker-fts/tracker-parser.c
@@ -299,7 +299,7 @@ parser_next (TrackerParser *parser,
start = NULL;
end = NULL;
- for (p = parser->cursor; *p; p = g_utf8_next_char (p)) {
+ for (p = parser->cursor; *p && *p != '\0'; p = g_utf8_next_char (p)) {
TrackerParserWordType type;
gunichar c;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]