changeset 14687:c675559dfdb2

[gaim-migrate @ 17439] Fix Coverity CID 219 - don't pass NULL to strcmp committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 07 Oct 2006 17:05:27 +0000
parents 7c47556216ec
children 37bb5e487347
files libgaim/protocols/silc/ops.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgaim/protocols/silc/ops.c	Sat Oct 07 17:03:26 2006 +0000
+++ b/libgaim/protocols/silc/ops.c	Sat Oct 07 17:05:27 2006 +0000
@@ -890,8 +890,9 @@
 							if (b->account != gc->account)
 								continue;
 							f = gaim_blist_node_get_string(bnode, "public-key");
-							if (!strcmp(f, buf))
+							if (f && !strcmp(f, buf))
 								goto cont;
+							b = NULL;
 						}
 					}
 				}