summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorxhe <xw897002528@gmail.com>2017-11-06 23:41:01 +0800
committerxhe <xw897002528@gmail.com>2017-11-07 22:34:39 +0800
commit4814e180d933f655aa0bdc566ec924c8e47eb939 (patch)
tree7e5f27efe5bdfd74c29c7715e459e901ade89d0d /src
parenta777a373bfc7b9868b1a9748e0b498e3625c7546 (diff)
downloadgettext-tiny-test.tar.gz
msgmerge: do not output to terminal when --updatetest
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')
-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);