mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-07 23:33:55 +00:00
Fix crash with -S by not freeing control->suffix.
This commit is contained in:
parent
275523661d
commit
1aa0c0fdd0
1 changed files with 0 additions and 2 deletions
2
main.c
2
main.c
|
|
@ -286,7 +286,6 @@ int main(int argc, char *argv[])
|
|||
if (unlikely(STDOUT))
|
||||
failure("Cannot specify an output filename when outputting to stdout\n");
|
||||
control->outname = optarg;
|
||||
free(control->suffix);
|
||||
control->suffix = "";
|
||||
break;
|
||||
case 'O':
|
||||
|
|
@ -314,7 +313,6 @@ int main(int argc, char *argv[])
|
|||
failure("Specified output filename already, can't specify an extension.\n");
|
||||
if (unlikely(STDOUT))
|
||||
failure("Cannot specify a filename suffix when outputting to stdout\n");
|
||||
free(control->suffix);
|
||||
control->suffix = optarg;
|
||||
break;
|
||||
case 't':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue