Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 25 Jul 2001 21:00:58 +0000 (21:00 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 25 Jul 2001 21:00:58 +0000 (21:00 +0000)
* iconv/iconvconfig.c (main): Don't write an output file if we
have seen an error.

ChangeLog
iconv/iconvconfig.c

index 5fac726..bb4c383 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2001-07-25  Ulrich Drepper  <drepper@redhat.com>
 
+       * iconv/iconvconfig.c (main): Don't write an output file if we
+       have seen an error.
+
        * iconv/Makefile (install-bin): Add iconvconfig.
 
 2001-07-25  Jakub Jelinek  <jakub@redhat.com>
index e0811d4..379a3bf 100644 (file)
@@ -301,8 +301,11 @@ main (int argc, char *argv[])
      about them.  */
   generate_name_info ();
 
-  /* Write the output file.  */
-  status = write_output ();
+  /* Write the output file, but only if we haven't seen any error.  */
+  if (status == 0)
+    status = write_output ();
+  else
+    fputs ("No output written!\n", stderr);
 
   return status;
 }