From 2b51d416317e69bdb9f34ec9035fe3af51627a0c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 28 Apr 2012 19:08:31 +0100 Subject: [PATCH] Revert "Free split args in command.c" This reverts commit 161157a1c868746d052924bd590c5cfd9f7a75f7. --- command.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/command.c b/command.c index 5ecb015e..de36e732 100644 --- a/command.c +++ b/command.c @@ -81,10 +81,8 @@ static struct command_t _parse_command(char *str) struct command_t cmd; char **split = g_strsplit(str, " ", 0); - cmd.command = malloc((strlen(split[0]) + 1) * sizeof(char)); - strcpy(cmd.command, split[0]); + cmd.command = split[0]; cmd.params = NULL; - g_strfreev(split); return cmd; }