Changeset 4a9c6b0 for root_commands.c


Ignore:
Timestamp:
2017-11-23T20:57:04Z (7 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
7a9d968, 7ec2ce8
Parents:
49108f3
Message:

cmd_chat_list_finish: fix crash when plugins provide NULL room titles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • root_commands.c

    r49108f3 r4a9c6b0  
    14401440                topic = ci->topic ? ci->topic : "";
    14411441
    1442                 padded = str_pad_and_truncate(ci->title, title_len, "[...]");
     1442                padded = str_pad_and_truncate(ci->title ? ci->title : "", title_len, "[...]");
    14431443                irc_rootmsg(irc, iformat, ++i, padded, topic);
    14441444                g_free(padded);
Note: See TracChangeset for help on using the changeset viewer.