1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-29 19:56:07 -04:00

Revert "Free split args in command.c"

This reverts commit 161157a1c8.
This commit is contained in:
James Booth 2012-04-28 19:08:31 +01:00
parent 3fa7931d53
commit 2b51d41631

View File

@ -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;
}