diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2004-06-04 01:30:58 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2004-06-04 01:30:58 +0800 |
commit | b3f5c26f5cc5621ec416418952924a709bbc584a (patch) | |
tree | 2c9c8214407e8de976fe3164e91f4bbff940bfaf /addressbook/conduit | |
parent | 71caf4dc6860052198ff51c64937843bf6048fa8 (diff) | |
download | gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.tar gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.tar.gz gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.tar.bz2 gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.tar.lz gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.tar.xz gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.tar.zst gsoc2013-evolution-b3f5c26f5cc5621ec416418952924a709bbc584a.zip |
Protect against a NULL uid. Fixes bug #57619.
2004-06-03 Jeffrey Stedfast <fejj@novell.com>
* conduit/address-conduit.c (set_status_cleared): Protect against
a NULL uid. Fixes bug #57619.
svn path=/trunk/; revision=26175
Diffstat (limited to 'addressbook/conduit')
-rw-r--r-- | addressbook/conduit/address-conduit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index 555e470fda..9e29167590 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -473,7 +473,7 @@ next_changed_item (EAddrConduitContext *ctxt, GList *changes) EBookChange *ebc; GList *l; - for (l = changes; l != NULL; l = l->next) { + for (l = changes; l != NULL; l = l->next) { ebc = l->data; if (g_hash_table_lookup (ctxt->changed_hash, e_contact_get_const (ebc->contact, E_CONTACT_UID))) @@ -1283,9 +1283,12 @@ set_status_cleared (GnomePilotConduitSyncAbs *conduit, EAddrLocalRecord *local, EAddrConduitContext *ctxt) { + const char *uid; + LOG (g_message ( "set_status_cleared: clearing status\n" )); - g_hash_table_remove (ctxt->changed_hash, e_contact_get_const (local->contact, E_CONTACT_UID)); + if ((uid = e_contact_get_const (local->contact, E_CONTACT_UID))) + g_hash_table_remove (ctxt->changed_hash, uid); return 0; } |