comparison console/gntconv.c @ 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 81650a27f253
children 04f03667702f
comparison
equal deleted inserted replaced
14687:c675559dfdb2 14688:37bb5e487347
232 GGConv *ggc; 232 GGConv *ggc;
233 GaimConvIm *im = NULL; 233 GaimConvIm *im = NULL;
234 char *title, *old_title; 234 char *title, *old_title;
235 235
236 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, who, account); 236 conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, who, account);
237 im = GAIM_CONV_IM(conv);
238 237
239 if (!conv) 238 if (!conv)
240 return; 239 return;
240
241 im = GAIM_CONV_IM(conv);
241 242
242 if (gaim_conv_im_get_typing_state(im) == GAIM_TYPING) { 243 if (gaim_conv_im_get_typing_state(im) == GAIM_TYPING) {
243 old_title = get_conversation_title(conv, account); 244 old_title = get_conversation_title(conv, account);
244 title = g_strdup_printf(_("%s [%s]"), old_title, 245 title = g_strdup_printf(_("%s [%s]"), old_title,
245 gnt_ascii_only() ? "T" : "\342\243\277"); 246 gnt_ascii_only() ? "T" : "\342\243\277");