summaryrefslogtreecommitdiff
path: root/src/msgmerge.c
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2017-11-06 23:41:01 +0800
committerxhe <xw897002528@gmail.com>2017-11-06 23:41:01 +0800
commit784322056fd0d1052da42bb75b2afe982d2545a3 (patch)
tree09840a19649a855928e9da4df433778f6d507244 /src/msgmerge.c
parentef48e884d1af4a1171dc2c4cbd319c27812a9284 (diff)
downloadgettext-tiny-msgmerge-stub.tar.gz
msgmerge: do not output to terminal when --updatemsgmerge-stub
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);