]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Lisp, Scheme support: Fix format string checking.
authorBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 14:30:39 +0000 (16:30 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 Jul 2025 15:41:22 +0000 (17:41 +0200)
* gettext-tools/src/format-lisp.c (format_check): Allow missing arguments if
!equality.
* gettext-tools/src/format-scheme.c (format_check): Likewise.

gettext-tools/src/format-lisp.c
gettext-tools/src/format-scheme.c

index 06eabe00ed414237dde6aab5a0057738cf1f85f8..b12c7083f7b6ff634a83b0be58b39584166e3806 100644 (file)
@@ -3503,7 +3503,7 @@ format_check (void *msgid_descr, void *msgstr_descr, bool equality,
 
       if (!(intersection != NULL
             && (normalize_list (intersection),
-                equal_list (intersection, spec2->list))))
+                equal_list (intersection, spec1->list))))
         {
           if (error_logger)
             error_logger (error_logger_data,
index 8740132231106f2687587b68c01593b3323ebd91..0cef3a103172153f3471e3ca342d9a819a7e142d 100644 (file)
@@ -3425,7 +3425,7 @@ format_check (void *msgid_descr, void *msgstr_descr, bool equality,
 
       if (!(intersection != NULL
             && (normalize_list (intersection),
-                equal_list (intersection, spec2->list))))
+                equal_list (intersection, spec1->list))))
         {
           if (error_logger)
             error_logger (error_logger_data,