[evolution-data-server] Bug 739495 - addressbook: Fix a typo in a comparison



commit c785914f84147c59c27b9f7d59a009d3a7d26fcc
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Nov 1 14:21:06 2014 +0000

    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

 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 49df7ee..65cb5e7 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) {


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