diff options
Diffstat (limited to 'src/fe-text/statusbar-items.c')
-rw-r--r-- | src/fe-text/statusbar-items.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/fe-text/statusbar-items.c b/src/fe-text/statusbar-items.c index 8e4a3420..a19232d2 100644 --- a/src/fe-text/statusbar-items.c +++ b/src/fe-text/statusbar-items.c @@ -590,13 +590,14 @@ static void statusbar_topic(SBAR_ITEM_REC *item, int ypos) query = irc_item_query(active_win->active); if (channel != NULL && channel->topic != NULL) topic = channel->topic; if (query != NULL && query->address != NULL) topic = query->address; - if (topic == NULL) return; - topic = strip_codes(topic); - str = g_strdup_printf("%.*s", item->size, topic); - set_color((1<<4)+15); addstr(str); - g_free(str); - g_free(topic); + if (topic != NULL) { + topic = strip_codes(topic); + str = g_strdup_printf("%.*s", item->size, topic); + set_color((1<<4)+15); addstr(str); + g_free(str); + g_free(topic); + } screen_refresh(); } |