aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-08 07:37:30 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-08 07:37:30 +0800
commitfe9d3ea8fa7ef4d4385edd93bf19de46d218135e (patch)
tree829970e922f6beb45fb9bf57c6f79788a8f308ea /addressbook/backend
parent2e04788970472683280e310053b2ec56bf94b7e3 (diff)
downloadgsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.tar
gsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.tar.gz
gsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.tar.bz2
gsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.tar.lz
gsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.tar.xz
gsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.tar.zst
gsoc2013-evolution-fe9d3ea8fa7ef4d4385edd93bf19de46d218135e.zip
Fixed an off by 2 error.
2000-05-07 Christopher James Lahey <clahey@helixcode.com> * backend/pas/pas-backend-file.c: Fixed an off by 2 error. svn path=/trunk/; revision=2889
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 2dbd27a89a..02964ffe6b 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -415,6 +415,9 @@ pas_backend_file_search (PASBackendFile *bf,
DBT id_dbt, vcard_dbt;
int i;
+ if (!bf->priv->loaded)
+ return;
+
view->search_sexp = e_sexp_new();
view->search_context = g_new0(PASBackendFileSearchContext, 1);
@@ -436,7 +439,7 @@ pas_backend_file_search (PASBackendFile *bf,
while (db_error == 0) {
/* don't include the version in the list of cards */
- if (id_dbt.size != strlen(PAS_BACKEND_FILE_VERSION_NAME + 1)
+ if (id_dbt.size != strlen(PAS_BACKEND_FILE_VERSION_NAME) + 1
|| strcmp (id_dbt.data, PAS_BACKEND_FILE_VERSION_NAME)) {
char *vcard_string = vcard_dbt.data;