aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/backend/pas/pas-backend-file.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 9b86d049eb..43164cabc1 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,6 +1,11 @@
2001-08-20 JP Rosevear <jpr@ximian.com>
* backend/pas/pas-backend-file.c
+ (pas_backend_file_changes_foreach_key): use DB_NOTFOUND const
+
+2001-08-20 JP Rosevear <jpr@ximian.com>
+
+ * backend/pas/pas-backend-file.c
(pas_backend_file_process_get_changes): null out card_sexp so that
we don't crash when copying
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 1942400d09..77455f59fc 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -344,10 +344,10 @@ pas_backend_file_changes_foreach_key (const char *key, gpointer user_data)
memset (&vcard_dbt, 0, sizeof (vcard_dbt));
db_error = db->get (db, NULL, &id_dbt, &vcard_dbt, 0);
- if (db_error == 1) {
+ if (db_error == DB_NOTFOUND) {
char *id = id_dbt.data;
- ctx->del_ids = g_list_append (ctx->del_ids, strdup(id));
+ ctx->del_ids = g_list_append (ctx->del_ids, strdup (id));
}
}