c-opts.c (c_common_post_options): On fopen failure, return false, not NULL.
authorHans-Peter Nilsson <hp@bitrange.com>
Sat, 8 Mar 2003 23:46:46 +0000 (23:46 +0000)
committerHans-Peter Nilsson <hp@gcc.gnu.org>
Sat, 8 Mar 2003 23:46:46 +0000 (23:46 +0000)
* c-opts.c (c_common_post_options): On fopen failure, return
false, not NULL.

From-SVN: r64004

gcc/ChangeLog
gcc/c-opts.c

index b97153a3a167defbd6de2ae82a43b2c903306749..6f56f85a47d6fb51c2ee7eb0d7ce4f2ca3ef9707 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-09  Hans-Peter Nilsson  <hp@bitrange.com>
+
+       * c-opts.c (c_common_post_options): On fopen failure, return
+       false, not NULL.
+
 2003-03-08  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
index 7f902ee9e8a9b55187c08abd3f8bbd7e15fc6d4c..ba075f63c204a13dcda57a2237528393a7fb9212 100644 (file)
@@ -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);