diff options
author | Andreas Schwab <schwab@redhat.com> | 2010-01-25 07:17:47 -0800 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-01-25 07:17:47 -0800 |
commit | 7a518360023592882a7335b843ce1a5ea322dec5 (patch) | |
tree | 58db2a563d8851b05b890504f9478f7b370da2b2 /iconv/iconv_prog.c | |
parent | 8549abcb9ca4d7857cc457aaa17c2073522804f4 (diff) | |
download | glibc-7a518360023592882a7335b843ce1a5ea322dec5.zip glibc-7a518360023592882a7335b843ce1a5ea322dec5.tar.gz glibc-7a518360023592882a7335b843ce1a5ea322dec5.tar.bz2 |
Fix error checking in iconv.
Diffstat (limited to 'iconv/iconv_prog.c')
-rw-r--r-- | iconv/iconv_prog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/iconv_prog.c b/iconv/iconv_prog.c index a1ca05f..3bcb9b4 100644 --- a/iconv/iconv_prog.c +++ b/iconv/iconv_prog.c @@ -442,7 +442,7 @@ write_output (const char *outbuf, const char *outptr, FILE **output, if (output_file != NULL && strcmp (output_file, "-") != 0) { *output = fopen (output_file, "w"); - if (output == NULL) + if (*output == NULL) error (EXIT_FAILURE, errno, _("cannot open output file")); } else |