mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-02-21 14:54:23 +01:00
Fix crash with -S by not freeing control->suffix.
This commit is contained in:
parent
275523661d
commit
1aa0c0fdd0
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…
Reference in a new issue