From 4814e180d933f655aa0bdc566ec924c8e47eb939 Mon Sep 17 00:00:00 2001 From: xhe Date: Mon, 6 Nov 2017 23:41:01 +0800 Subject: 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. --- src/msgmerge.c | 1 + 1 file changed, 1 insertion(+) 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); -- cgit v1.2.1