changeset 4505:577e6d268340

[gaim-migrate @ 4780] fix a crash when trying to send when an account is offline committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sat, 01 Feb 2003 21:52:38 +0000
parents d321dd3e76da
children f3afcc4dd133
files src/gtkconv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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, "<B>%s</B>", buf);
 			strcpy(buf, buf2);