mirror of
https://github.com/irssi/irssi.git
synced 2025-01-03 14:56:47 -05:00
/SERVER ADD -ircnet value wasn't strdup()ed so it might have done something
nasty, at least during quit might have crashed. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2617 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
6a89217d6a
commit
25d5e26e7b
@ -49,8 +49,8 @@ static void sig_server_add_fill(IRC_SERVER_SETUP_REC *rec,
|
||||
g_free_and_null(rec->chatnet);
|
||||
if (*value != '\0') {
|
||||
ircnet = ircnet_find(value);
|
||||
rec->chatnet = ircnet != NULL ? ircnet->name :
|
||||
g_strdup(value);
|
||||
rec->chatnet = ircnet != NULL ?
|
||||
g_strdup(ircnet->name) : g_strdup(value);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user