Skip to content

Commit 0e62c25

Browse files
maxcreesxhebox
authored andcommitted
msgfmt: exit(1) if incorrectly used
This prevents builds from continuing seemingly fine when they are actually not using this version of msgfmt correctly.
1 parent 5dbed86 commit 0e62c25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/msgfmt.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void set_file(int out, char* fn, FILE** dest) {
278278
int main(int argc, char**argv) {
279279
if (argc == 1) {
280280
syntax();
281-
return 0;
281+
return 1;
282282
}
283283

284284
int arg = 1;
@@ -376,7 +376,7 @@ int main(int argc, char**argv) {
376376
streq(A+1, "D")
377377
) {
378378
syntax();
379-
return 0;
379+
return 1;
380380
} else if (streq(A+1, "l")) {
381381
arg++;
382382
locale = A;

0 commit comments

Comments
 (0)