diff options
author | JP Rosevear <jpr@ximian.com> | 2001-08-21 00:25:12 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-08-21 00:25:12 +0800 |
commit | 0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1 (patch) | |
tree | 8080d207ce67b4a7ace341c65ab3c4f15c70787e | |
parent | 8534057ff57cc50024fd438e287370191d77b43a (diff) | |
download | gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.gz gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.bz2 gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.lz gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.xz gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.tar.zst gsoc2013-evolution-0aa3fe4cac75115163b4e5bb1a3ae5ac2dad0ef1.zip |
use DB_NOTFOUND const
2001-08-20 JP Rosevear <jpr@ximian.com>
* backend/pas/pas-backend-file.c
(pas_backend_file_changes_foreach_key): use DB_NOTFOUND const
svn path=/trunk/; revision=12311
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/backend/pas/pas-backend-file.c | 4 |
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)); } } |