changeset 14688:37bb5e487347

[gaim-migrate @ 17440] Fix Coverity CID 291 - don't dereference conv before the NULL check committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Sat, 07 Oct 2006 17:09:14 +0000
parents c675559dfdb2
children b7754ba03aa8
files console/gntconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,