# HG changeset patch # User Richard Laager # Date 1141179041 0 # Node ID 7c8f03ad0e8e19da62137264caaa08cd18583fad # Parent 7ffee2a0fb129d82659d01b083de693a7c819ebd [gaim-migrate @ 15722] (19:22:30) slowhog_work: got a small patch to fix the segfault caused by a protocol doesn't not support chat topic committer: Tailor Script diff -r 7ffee2a0fb12 -r 7c8f03ad0e8e src/gtkconv.c --- a/src/gtkconv.c Tue Feb 28 23:38:48 2006 +0000 +++ b/src/gtkconv.c Wed Mar 01 02:10:41 2006 +0000 @@ -5576,11 +5576,14 @@ GaimConvChat *chat = GAIM_CONV_CHAT(conv); GaimGtkChatPane *gtkchat = gtkconv->u.chat; - topic = gaim_conv_chat_get_topic(chat); - - gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), topic ? topic : ""); - gtk_tooltips_set_tip(gtkconv->tooltips, gtkchat->topic_text, - topic ? topic : "", NULL); + if (gtkchat->topic_text != NULL) + { + topic = gaim_conv_chat_get_topic(chat); + + gtk_entry_set_text(GTK_ENTRY(gtkchat->topic_text), topic ? topic : ""); + gtk_tooltips_set_tip(gtkconv->tooltips, gtkchat->topic_text, + topic ? topic : "", NULL); + } } if (fields & GAIM_GTKCONV_SMILEY_THEME)