diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-11-01 14:21:06 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-11-08 22:52:29 +0000 |
commit | c785914f84147c59c27b9f7d59a009d3a7d26fcc (patch) | |
tree | b7caf0d829e4f65d2195c6aa6016dd7635fc0166 /addressbook | |
parent | 3b90f87ebe6aa506cbd923a22ce1a39d57c85273 (diff) | |
download | evolution-data-server-c785914f84147c59c27b9f7d59a009d3a7d26fcc.tar.gz |
Bug 739495 - addressbook: Fix a typo in a comparison
E_BOOK_QUERY_BEGINS_WITH was checked against twice, which seems wrong.
Presumably, the second was meant to be E_BOOK_QUERY_ENDS_WITH, but I’m
not entirely sure.
Coverity issue: #1250456
https://bugzilla.gnome.org/show_bug.cgi?id=739495
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/libedata-book/e-book-sqlite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addressbook/libedata-book/e-book-sqlite.c b/addressbook/libedata-book/e-book-sqlite.c index 49df7ee41..65cb5e73e 100644 --- a/addressbook/libedata-book/e-book-sqlite.c +++ b/addressbook/libedata-book/e-book-sqlite.c @@ -5525,7 +5525,7 @@ ebsql_is_autocomplete_query (PreflightContext *context) /* For these, check if the field being operated on is an auxiliary field or not. */ if (elements[i]->query == E_BOOK_QUERY_BEGINS_WITH || - elements[i]->query == E_BOOK_QUERY_BEGINS_WITH || + elements[i]->query == E_BOOK_QUERY_ENDS_WITH || elements[i]->query == E_BOOK_QUERY_IS || elements[i]->query == BOOK_QUERY_EXISTS || elements[i]->query == E_BOOK_QUERY_CONTAINS) { |