summaryrefslogtreecommitdiff
path: root/src/msgmerge.c
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2017-11-06 23:41:01 +0800
committerrofl0r <retnyg@gmx.net>2017-11-07 15:34:58 +0000
commit53d2a0da64abb47aca13a3e0c2be1f231b76b49d (patch)
treee539ea39964426a201d07f91ed46c78f5bf03e9c /src/msgmerge.c
parent71043f79c540f8223417be69961aad5f19bcf1cd (diff)
downloadgettext-tiny-53d2a0da64abb47aca13a3e0c2be1f231b76b49d.tar.gz
msgmerge: do not output to terminal when --update
i have a misunderstanding on --update, this argument is used to update the original .po file. And because we just simply copy strings from .po file, so we should just return 0, as we dont actually do anything to .po file. when --update is passed, nothing should be printed on screen.
Diffstat (limited to 'src/msgmerge.c')
-rw-r--r--src/msgmerge.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/msgmerge.c b/src/msgmerge.c
index fd01546..ae85934 100644
--- a/src/msgmerge.c
+++ b/src/msgmerge.c
@@ -225,6 +225,7 @@ int main(int argc, char**argv) {
}
if(update) {
fprintf(stdout, "warning: update functionality unimplemented\n");
+ return 0;
}
if(!files.out || !files.po || !files.pot) syntax();
int ret = process(&files, update, backup);