* iconv/iconvconfig.c (main): Don't write an output file if we
	have seen an error.
This commit is contained in:
Ulrich Drepper 2001-07-25 21:00:58 +00:00
parent a2cb734f5d
commit ba915a3807
2 changed files with 8 additions and 2 deletions

View File

@ -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>

View 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;
}