1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04:00

Merge pull request #1297 from ailin-nemui/memory

missing strdup on netsplits w/o chan
This commit is contained in:
ailin-nemui 2021-04-11 13:24:42 +02:00 committed by GitHub
commit fa913091bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,