# HG changeset patch # User Nathan Walp # Date 1044136358 0 # Node ID 577e6d2683405d6ce3a7e795f09f267bd3b34c82 # Parent d321dd3e76daa0e44e44fd963c006087a8066402 [gaim-migrate @ 4780] fix a crash when trying to send when an account is offline committer: Tailor Script diff -r d321dd3e76da -r 577e6d268340 src/gtkconv.c --- a/src/gtkconv.c Sat Feb 01 21:50:41 2003 +0000 +++ b/src/gtkconv.c Sat Feb 01 21:52:38 2003 +0000 @@ -352,6 +352,7 @@ char *buf, *buf2; GtkTextIter start_iter, end_iter; int limit; + struct gaim_connection *gc = gaim_conversation_get_gc(conv); gtkconv = GAIM_GTK_CONVERSATION(conv); @@ -385,7 +386,7 @@ buf2 = g_malloc(limit); - if (gaim_conversation_get_gc(conv)->flags & OPT_CONN_HTML) { + if (gc && gc->flags & OPT_CONN_HTML) { if (font_options & OPT_FONT_BOLD) { g_snprintf(buf2, limit, "%s", buf); strcpy(buf, buf2);