]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
xgettext: Remove side effect of an extraction on later extractions.
authorJonathan Matthew <jonathan@d14n.org>
Sun, 26 Jun 2022 07:04:48 +0000 (09:04 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 9 Oct 2022 07:30:42 +0000 (09:30 +0200)
Reported in <https://savannah.gnu.org/bugs/?62363>.

* gettext-tools/src/xgettext.c (extract_from_file): Reset
current_formatstring_parser1/2/3 variables before returning.

gettext-tools/src/xgettext.c

index 1dce01efb1d5f1c7ec6d684c69f841906989ec9c..bd2e38f7d8e89e75156a6333233fb2f8fb60cfbc 100644 (file)
@@ -1906,6 +1906,10 @@ extract_from_file (const char *file_name, extractor_ty extractor,
     }
   free (logical_file_name);
   free (real_file_name);
+
+  current_formatstring_parser1 = NULL;
+  current_formatstring_parser2 = NULL;
+  current_formatstring_parser3 = NULL;
 }
 
 static message_ty *