mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -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;
|
char *chanstr;
|
||||||
|
|
||||||
chan = rec->channels->data;
|
chan = rec->channels->data;
|
||||||
chanstr = chan == NULL ? "" :
|
chanstr = chan == NULL ?
|
||||||
g_strconcat(chan->op ? "@" :
|
g_strdup("") :
|
||||||
(chan->voice ? "+" : ""), chan->name, NULL);
|
g_strconcat(chan->op ? "@" : (chan->voice ? "+" : ""), chan->name, NULL);
|
||||||
|
|
||||||
printformat(server, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_LINE,
|
printformat(server, NULL, MSGLEVEL_CLIENTCRAP, IRCTXT_NETSPLITS_LINE,
|
||||||
rec->nick, chanstr, rec->server->server,
|
rec->nick, chanstr, rec->server->server,
|
||||||
|
Loading…
Reference in New Issue
Block a user