Permalink
Browse files

cmd_chat_list_finish: fix crash when plugins provide NULL room titles

  • Loading branch information...
dequis committed Nov 23, 2017
1 parent 49108f3 commit 4a9c6b0b15eb3738897dc1635fda2e4be67414ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 root_commands.c
View
@@ -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);
}

0 comments on commit 4a9c6b0

Please sign in to comment.