Fix error checking in iconv.
This commit is contained in:
parent
8549abcb9c
commit
7a51836002
@ -1,3 +1,7 @@
|
||||
2010-01-25 Andreas Schwab <schwab@redhat.com>
|
||||
|
||||
* iconv/iconv_prog.c (write_output): Fix check for open failure.
|
||||
|
||||
2010-01-22 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #11200]
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user