From 58a7d5ff3964ba46cd97c6e127bc555c39031834 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C4=81nis=20R=C5=ABcis?= Date: Wed, 31 Mar 2010 01:58:36 +0300 Subject: [PATCH] IRC: minor cleanup --- irc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); -- 2.39.2