]> 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, 26 Jun 2022 07:04:48 +0000 (09:04 +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 0259f6da5e29539f2ae0c1111c5bcb07279581bf..8cd587a2d5e40c08fc6fbeabe61c6a6e17e0cd5d 100644 (file)
@@ -1913,6 +1913,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 *