forked from PsychoticNinja/irssi
/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);
|
g_free_and_null(rec->chatnet);
|
||||||
if (*value != '\0') {
|
if (*value != '\0') {
|
||||||
ircnet = ircnet_find(value);
|
ircnet = ircnet_find(value);
|
||||||
rec->chatnet = ircnet != NULL ? ircnet->name :
|
rec->chatnet = ircnet != NULL ?
|
||||||
g_strdup(value);
|
g_strdup(ircnet->name) : g_strdup(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user