# HG changeset patch # User Sadrul Habib Chowdhury # Date 1211669646 0 # Node ID 4d8dced30fa2d7a9f8aff8970a2bb9ca603d7ef7 # Parent f3087936d594fc05b80b384d8bdb1bad741023cf Don't try to escape a NULL text. This gets rid of a runtime warning. diff -r f3087936d594 -r 4d8dced30fa2 pidgin/gtkblist.c --- a/pidgin/gtkblist.c Sat May 24 22:49:44 2008 +0000 +++ b/pidgin/gtkblist.c Sat May 24 22:54:06 2008 +0000 @@ -3336,7 +3336,8 @@ g_list_length(purple_conv_chat_get_users(PURPLE_CONV_CHAT(conv)))); if (prpl_info && (prpl_info->options & OPT_PROTO_CHAT_TOPIC)) { - char *topic = g_markup_escape_text(purple_conv_chat_get_topic(PURPLE_CONV_CHAT(conv)), -1); + const char *chattopic = purple_conv_chat_get_topic(PURPLE_CONV_CHAT(conv)); + char *topic = chattopic ? g_markup_escape_text(chattopic, -1) : NULL; g_string_append_printf(str, _("\nTopic: %s"), topic ? topic : _("(no topic set)")); g_free(topic); }