mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Merge pull request #1297 from ailin-nemui/memory
missing strdup on netsplits w/o chan
This commit is contained in:
commit
fa913091bd
@ -320,9 +320,9 @@ static void split_print(NETSPLIT_REC *rec, SERVER_REC *server)
|
||||
char *chanstr;
|
||||
|
||||
chan = rec->channels->data;
|
||||
chanstr = chan == NULL ? "" :
|
||||
g_strconcat(chan->op ? "@" :
|
||||
(chan->voice ? "+" : ""), chan->name, NULL);
|
||||
chanstr = chan == NULL ?
|
||||
g_strdup("") :
|
||||
g_strconcat(chan->op ? "@" : (chan->voice ? "+" : ""), chan->name, NULL);
|
||||
|
||||
printformat(server, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_LINE,
|
||||
rec->nick, chanstr, rec->server->server,
|
||||
|
Loading…
Reference in New Issue
Block a user