- opercmd.c:command_parse(): don't let command_create() allocate memory for empty...
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 15 Mar 2015 17:44:03 +0000 (17:44 +0000)
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>
Sun, 15 Mar 2015 17:44:03 +0000 (17:44 +0000)
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/hopm/trunk@5702 82007160-df01-0410-b94d-b575c5fd34c7

src/opercmd.c

index 07873df5626c3060b25bb3ea902f98dc4ba83c1e..80babcd2419a1374abe95ceb2b7f007ca103d040 100644 (file)
@@ -167,10 +167,8 @@ command_parse(char *command, const struct ChannelConf *target,
     *param = '\0';
     param++;
   }
-  else
-    param = "";
 
-  log_printf("COMMAND -> parsed [%s] [%s]", command, param);
+  log_printf("COMMAND -> parsed [%s] [%s]", command, param ? param : "");
 
   /* Lookup the command in the table */
   for (const struct OperCommandHash *tab = COMMAND_TABLE; tab->command; ++tab)