1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

Fixed bug when allocating command and autojoin strings

This commit is contained in:
Sebastien Helleu
2003-10-04 11:30:16 +00:00
parent 073b1d0bd4
commit 53efa7d6af
2 changed files with 8 additions and 4 deletions
+4 -2
View File
@@ -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
+4 -2
View File
@@ -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