Skip to content

Commit

Permalink
Fix crash if compression got skipped and --stdout was used.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjko committed Dec 23, 2022
1 parent 14d3d6f commit 8d6fdb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jpegoptim.c
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ int optimize(FILE *log_fh, const char *filename, const char *newname,
}

/* prepare to decompress */
if (stdin_mode) {
if (stdin_mode || stdout_mode) {
if (inbuffer)
free(inbuffer);
inbuffersize=65536;
Expand Down

0 comments on commit 8d6fdb0

Please sign in to comment.