summaryrefslogtreecommitdiff
path: root/src/fe-common/irc/fe-irc-server.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-03-15 00:05:55 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-03-15 00:05:55 +0000
commit25d5e26e7beb45a6376d852c390c7b1d36f5a911 (patch)
tree28374c55e37d0f612486e407b77790f29cbfb392 /src/fe-common/irc/fe-irc-server.c
parent6a89217d6a413c4f69c1396f711908fc746083e6 (diff)
downloadirssi-25d5e26e7beb45a6376d852c390c7b1d36f5a911.zip
/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
Diffstat (limited to 'src/fe-common/irc/fe-irc-server.c')
-rw-r--r--src/fe-common/irc/fe-irc-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/irc/fe-irc-server.c b/src/fe-common/irc/fe-irc-server.c
index 54704289..1bbed153 100644
--- a/src/fe-common/irc/fe-irc-server.c
+++ b/src/fe-common/irc/fe-irc-server.c
@@ -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);
}
}