]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't fclose the same FILE twice.
authorBruno Haible <bruno@clisp.org>
Tue, 2 May 2006 12:26:40 +0000 (12:26 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:13:12 +0000 (12:13 +0200)
gettext-tools/src/ChangeLog
gettext-tools/src/write-java.c

index 39ac61b5419a151ae0be09211c59126d8324b3d7..bfc82934a036c9b69f7993acae128b397e4b948c 100644 (file)
@@ -1,3 +1,9 @@
+2006-04-30  Bruno Haible  <bruno@clisp.org>
+
+       * write-java.c (msgdomain_write_java): Don't fclose the FILE after
+       fwriteerror signalled a failure.
+       * write-csharp.c (msgdomain_write_csharp): Likewise.
+
 2006-04-23  Bruno Haible  <bruno@clisp.org>
 
        * msgexec.c: Include <unistd.h> unconditionally.
index 04c38909d3de606167f1aaa75d440cf7cde22f5d..29ad6504b5c735e2b56ab1238620a81028d8e577 100644 (file)
@@ -1021,7 +1021,6 @@ but the Java ResourceBundle format doesn't support contexts\n")));
   if (fwriteerror (java_file))
     {
       error (0, errno, _("error while writing \"%s\" file"), java_file_name);
-      fclose (java_file);
       goto quit3;
     }