about summary refs log tree commit diff
path: root/iconv/iconvconfig.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-07-25 21:00:58 +0000
committerUlrich Drepper <drepper@redhat.com>2001-07-25 21:00:58 +0000
commitba915a38078a0765ad1e895fa7e6ca38e86ac3f8 (patch)
treefb5185786e78aabae24b3162678fedbf6a421052 /iconv/iconvconfig.c
parenta2cb734f5d785b1725437c7bf59a168ab3fbfb4d (diff)
downloadglibc-ba915a38078a0765ad1e895fa7e6ca38e86ac3f8.tar.gz
glibc-ba915a38078a0765ad1e895fa7e6ca38e86ac3f8.tar.xz
glibc-ba915a38078a0765ad1e895fa7e6ca38e86ac3f8.zip
Update.
	* iconv/iconvconfig.c (main): Don't write an output file if we
	have seen an error.
Diffstat (limited to 'iconv/iconvconfig.c')
-rw-r--r--iconv/iconvconfig.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/iconv/iconvconfig.c b/iconv/iconvconfig.c
index e0811d422a..379a3bf945 100644
--- a/iconv/iconvconfig.c
+++ b/iconv/iconvconfig.c
@@ -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;
 }