Sat, 07 Oct 2006 17:09:14 +0000
[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,