[gaim-migrate @ 17440]

Sat, 07 Oct 2006 17:09:14 +0000

author
Stu Tomlinson <nosnilmot@pidgin.im>
date
Sat, 07 Oct 2006 17:09:14 +0000
changeset 14750
1dad59ae254d
parent 14749
32fd14a011ba
child 14751
7be9261cb83b

[gaim-migrate @ 17440]
Fix Coverity CID 291 - don't dereference conv before the NULL check

console/gntconv.c file | annotate | diff | comparison | revisions
--- a/console/gntconv.c	Sat Oct 07 17:05:27 2006 +0000
+++ b/console/gntconv.c	Sat Oct 07 17:09:14 2006 +0000
@@ -234,11 +234,12 @@
 	char *title, *old_title;
 
 	conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, who, account);
-	im = GAIM_CONV_IM(conv);
 
 	if (!conv)
 		return;
 
+	im = GAIM_CONV_IM(conv);
+
 	if (gaim_conv_im_get_typing_state(im) == GAIM_TYPING) {
 		old_title = get_conversation_title(conv, account);
 		title = g_strdup_printf(_("%s [%s]"), old_title,

mercurial