summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Rees <maxcrees@me.com>2020-03-22 20:20:15 -0500
committerxhe <xhebox@users.noreply.github.com>2020-03-24 14:07:36 +0800
commit0e62c2588742cfffd3dc81c09ecc8488c0ce25b9 (patch)
tree85e93f05f05557efdf760f2cd4f2eae93af55337
parent5dbed86fb8780f365f95938c16657726e2a4ad91 (diff)
downloadgettext-tiny-0e62c2588742cfffd3dc81c09ecc8488c0ce25b9.tar.gz
msgfmt: exit(1) if incorrectly usedv0.3.2
This prevents builds from continuing seemingly fine when they are actually not using this version of msgfmt correctly.
-rw-r--r--src/msgfmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/msgfmt.c b/src/msgfmt.c
index aa16c5e..3de9a56 100644
--- a/src/msgfmt.c
+++ b/src/msgfmt.c
@@ -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;
@@ -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;