mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02: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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue