aboutsummaryrefslogtreecommitdiff
path: root/gcc/fix-header.c
diff options
context:
space:
mode:
authorPer Bothner <pbothner@apple.com>2003-10-02 07:03:42 +0000
committerPer Bothner <bothner@gcc.gnu.org>2003-10-02 00:03:42 -0700
commitf4b2bde73f84ff3936cba8c8a3773c4c29a038fe (patch)
tree073d54a44fc0257e933d04f1fd0ec4b6ab34ab6e /gcc/fix-header.c
parentefef2a5f2a6d41108e7df6f5d5e881d3073feae6 (diff)
downloadgcc-f4b2bde73f84ff3936cba8c8a3773c4c29a038fe.zip
gcc-f4b2bde73f84ff3936cba8c8a3773c4c29a038fe.tar.gz
gcc-f4b2bde73f84ff3936cba8c8a3773c4c29a038fe.tar.bz2
c-lex.c (fe_file_change): Handle a NULL new_map.
* c-lex.c (fe_file_change): Handle a NULL new_map. * fix-header.c (cb_file_change): Likewise. * c-ppoutput.c (pp_file_change): Likewise. From-SVN: r72011
Diffstat (limited to 'gcc/fix-header.c')
-rw-r--r--gcc/fix-header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fix-header.c b/gcc/fix-header.c
index 0f5f8c0..8ae3025 100644
--- a/gcc/fix-header.c
+++ b/gcc/fix-header.c
@@ -578,7 +578,7 @@ cb_file_change (cpp_reader *pfile ATTRIBUTE_UNUSED,
const struct line_map *map)
{
/* Just keep track of current file name. */
- cur_file = map->to_file;
+ cur_file = map == NULL ? NULL : map->to_file;
}
static void