aboutsummaryrefslogtreecommitdiff
path: root/iconv
diff options
context:
space:
mode:
Diffstat (limited to 'iconv')
-rw-r--r--iconv/iconvconfig.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/iconv/iconvconfig.c b/iconv/iconvconfig.c
index e0811d4..379a3bf 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;
}