diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-04 11:30:16 +0000 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2003-10-04 11:30:16 +0000 |
commit | 53efa7d6afd56a390a6c9cbededf8e5e5d15688f (patch) | |
tree | bce84529c74cc18d996d2ac9319ec259019deea8 /src/irc/irc-server.c | |
parent | 073b1d0bd4f07e5f6731ea0cd223bfc893dcf07d (diff) | |
download | weechat-53efa7d6afd56a390a6c9cbededf8e5e5d15688f.zip |
Fixed bug when allocating command and autojoin strings
Diffstat (limited to 'src/irc/irc-server.c')
-rw-r--r-- | src/irc/irc-server.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/irc/irc-server.c b/src/irc/irc-server.c index a05c51ae1..d84956ef0 100644 --- a/src/irc/irc-server.c +++ b/src/irc/irc-server.c @@ -229,8 +229,10 @@ server_new (char *name, int autoconnect, char *address, int port, (username) ? strdup (username) : strdup ("weechat"); new_server->realname = (realname) ? strdup (realname) : strdup ("realname"); - new_server->command = command; - new_server->autojoin = autojoin; + new_server->command = + (command) ? strdup (command) : NULL; + new_server->autojoin = + (autojoin) ? strdup (autojoin) : NULL; new_server->nick = strdup (new_server->nick1); } else |