Skip to content

Commit

Permalink
msgfmt: exit(1) if incorrectly used
Browse files Browse the repository at this point in the history
This prevents builds from continuing seemingly fine when they are
actually not using this version of msgfmt correctly.
  • Loading branch information
maxcrees authored and xhebox committed Mar 24, 2020
1 parent 5dbed86 commit 0e62c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/msgfmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ void set_file(int out, char* fn, FILE** dest) {
int main(int argc, char**argv) {
if (argc == 1) {
syntax();
return 0;
return 1;
}

int arg = 1;
Expand Down Expand Up @@ -376,7 +376,7 @@ int main(int argc, char**argv) {
streq(A+1, "D")
) {
syntax();
return 0;
return 1;
} else if (streq(A+1, "l")) {
arg++;
locale = A;
Expand Down

0 comments on commit 0e62c25

Please sign in to comment.