1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04: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:
Timo Sirainen 2002-03-15 00:05:55 +00:00 committed by cras
parent 6a89217d6a
commit 25d5e26e7b

View File

@ -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);
}
}