]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Fix handling of syntax-checks with multi-domain POT files.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 09:19:38 +0000 (11:19 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 09:19:38 +0000 (11:19 +0200)
* gettext-tools/src/xgettext.c (main): Consider the total number of errors.

gettext-tools/src/xgettext.c

index c10186db12519534a25a48530d21b591f14d1703..f44e9348136be62c0bbd26919acc2171e9175353 100644 (file)
@@ -1104,7 +1104,7 @@ xgettext cannot work without keywords to look for"));
     for (i = 0; i < mdlp->nitems; i++)
       {
         message_list_ty *mlp = mdlp->item[i]->messages;
-        nerrors = syntax_check_message_list (mlp);
+        nerrors += syntax_check_message_list (mlp);
       }
 
     /* Exit with status 1 on any error.  */