[tracker] tracker-fts: Do not report fatal error when closing quote is missing
- From: Jürg Billeter <juergbi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] tracker-fts: Do not report fatal error when closing quote is missing
- Date: Fri, 25 Sep 2009 08:32:50 +0000 (UTC)
commit bba839f545139e5cc924ab86030125a35bbdd743
Author: Jürg Billeter <j bitron ch>
Date: Fri Sep 25 10:30:43 2009 +0200
tracker-fts: Do not report fatal error when closing quote is missing
src/tracker-fts/tracker-fts.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-fts/tracker-fts.c b/src/tracker-fts/tracker-fts.c
index c1278af..d8a2302 100644
--- a/src/tracker-fts/tracker-fts.c
+++ b/src/tracker-fts/tracker-fts.c
@@ -4519,9 +4519,9 @@ static int parseQuery(
}
if( inPhrase ){
- /* unmatched quote */
- queryClear(pQuery);
- return SQLITE_ERROR;
+ /* unmatched quote
+ proceed as if there is an extra quote at the end
+ do not report error as this may be user input */
}
/* Modify the values of the QueryTerm.nPhrase variables to account for
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]