Mercurial > pidgin.yaz
changeset 19270:fb4a1fb9ce8a
- Fix some overzealous g_asserts leading to a crash
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Tue, 14 Aug 2007 06:31:50 +0000 |
parents | f14d539508ca |
children | c28e1afe691b |
files | pidgin/gtkcertmgr.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkcertmgr.c Tue Aug 14 05:58:53 2007 +0000 +++ b/pidgin/gtkcertmgr.c Tue Aug 14 06:31:50 2007 +0000 @@ -359,7 +359,11 @@ if (1 == choice) { /* Yes, delete was confirmed */ /* Now delete the thing */ - g_assert(purple_certificate_pool_delete(tpm_dat->tls_peers, id)); + if (!purple_certificate_pool_delete(tpm_dat->tls_peers, id)) { + purple_debug_warning("gtkcertmgr/tls_peers_mgmt", + "Deletion failed on id %s\n", + id); + }; } g_free(id);