From c366ade5df676a25936ee88f81fd49b1dab6555d Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 8 Mar 2003 23:46:46 +0000 Subject: c-opts.c (c_common_post_options): On fopen failure, return false, not NULL. * c-opts.c (c_common_post_options): On fopen failure, return false, not NULL. From-SVN: r64004 --- gcc/ChangeLog | 5 +++++ gcc/c-opts.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b97153a..6f56f85 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-09 Hans-Peter Nilsson + + * c-opts.c (c_common_post_options): On fopen failure, return + false, not NULL. + 2003-03-08 Hans-Peter Nilsson * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not diff --git a/gcc/c-opts.c b/gcc/c-opts.c index 7f902ee..ba075f6 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -1508,7 +1508,7 @@ c_common_post_options (pfilename) if (out_stream == NULL) { fatal_io_error ("opening output file %s", out_fname); - return NULL; + return false; } init_pp_output (out_stream); -- cgit v1.1