summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}