From: Jānis Rūcis Date: Tue, 30 Mar 2010 22:58:36 +0000 (+0300) Subject: IRC: minor cleanup X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=65e1513c41311becefe2f7634e0889e3ae889020;p=xonotic%2Fdarkplaces.git IRC: minor cleanup --- diff --git a/irc.c b/irc.c index ceed28f9..e9050574 100644 --- a/irc.c +++ b/irc.c @@ -106,14 +106,13 @@ static void IRC_ParseArgs(ircmessage_t *msg, const char *args) { msg->args_num = 0; - while (msg->args_num < IRC_MAX_ARGS && *args) + while (msg->args_num < IRC_MAX_ARGS && args[0]) { - char **arg; + char **arg = msg->args + msg->args_num; int len; if (args[0] == ':') { - arg = msg->args + msg->args_num; len = strlen(args + 1); *arg = Z_Malloc(len + 1); @@ -125,7 +124,6 @@ static void IRC_ParseArgs(ircmessage_t *msg, const char *args) } else { - arg = msg->args + msg->args_num; len = strcspn(args, " "); *arg = Z_Malloc(len + 1);