aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 7d6499578d..057012ddaa 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -296,10 +296,9 @@ pas_backend_file_search (PASBackendFile *bf,
/* check if the vcard matches the search sexp */
if ((!search_needed) || vcard_matches_search (view, vcard_string)) {
cards = g_list_prepend (cards, g_strdup (vcard_string));
+ card_count ++;
}
- card_count ++;
-
/* If we've accumulated a number of checks, pass them off to the client. */
if (card_count >= card_threshold) {
cards = g_list_reverse (cards);