diff --git a/main.c b/main.c index 8e2f112..6eb8a25 100644 --- a/main.c +++ b/main.c @@ -281,13 +281,11 @@ int main(int argc, char *argv[]) failure("Invalid nice value (must be -20..19)\n"); break; case 'o': - if (control->outdir) - failure("Cannot have -o and -O together\n"); + if (control->outdir || control->suffix) + failure("Cannot have -o and -O or -S together\n"); 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': if (control->outname) /* can't mix -o and -O */