Commit d4eb0ce4 authored by Cyril Bouvier's avatar Cyril Bouvier

Fix a bug in prepare_grouped_command_lines (gzip.c) for files without suffix

parent 5ee3bb77
......@@ -281,7 +281,8 @@ char **prepare_grouped_command_lines(char **list_of_files)
new_commands[n_new_commands-1] = cmd;
free(tmp);
free(cmd_prefix);
free(cmd_postfix);
if (strcmp(cmd_postfix, ""))
free(cmd_postfix);
grouphead = grouptail;
}
new_commands = realloc(new_commands, ++n_new_commands * sizeof(char*));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment