Skip to content

Commit

Permalink
fix return code w/r/t --help
Browse files Browse the repository at this point in the history
  • Loading branch information
Traneptora committed Mar 25, 2023
1 parent de18483 commit 0ce478d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydrium.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int main(int argc, const char *argv[]) {

if (argc < 2 || !strcmp(argv[1], "--help")) {
fprintf(stderr, "Usage: %s <input.png> [output.jxl]\n", argv[0]);
return argc >= 2;
return argc < 2;
}
unsigned w, h;
unsigned ret = lodepng_decode24_file(&buffer, &w, &h, argv[1]);
Expand Down

0 comments on commit 0ce478d

Please sign in to comment.