aboutsummaryrefslogtreecommitdiffstats
path: root/root_commands.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2017-11-23 17:57:04 -0300
committerdequis <dx@dxzone.com.ar>2017-11-23 17:57:04 -0300
commit4a9c6b0b15eb3738897dc1635fda2e4be67414ad (patch)
tree7d617620e1f88a29e67b3161b2a8401421d5d076 /root_commands.c
parent49108f35b8ca7974820b9d29e31965e5f0264270 (diff)
cmd_chat_list_finish: fix crash when plugins provide NULL room titles
Diffstat (limited to 'root_commands.c')
-rw-r--r--root_commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/root_commands.c b/root_commands.c
index 1cbf462f..957c9518 100644
--- a/root_commands.c
+++ b/root_commands.c
@@ -1439,7 +1439,7 @@ void cmd_chat_list_finish(struct im_connection *ic)
ci = l->data;
topic = ci->topic ? ci->topic : "";
- padded = str_pad_and_truncate(ci->title, title_len, "[...]");
+ padded = str_pad_and_truncate(ci->title ? ci->title : "", title_len, "[...]");
irc_rootmsg(irc, iformat, ++i, padded, topic);
g_free(padded);
}