diff options
author | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-29 01:07:42 +0000 |
---|---|---|
committer | bothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-08-29 01:07:42 +0000 |
commit | 82166c5cf6b2d4c3cff8ceb5581b83017b90e607 (patch) | |
tree | 9442b173a19736f0540708f50520b30a3d617823 /gcc/cpptrad.c | |
parent | 055b0bfa3102b20f555a7b69d0fe3c2e67e80d08 (diff) | |
download | gcc-82166c5cf6b2d4c3cff8ceb5581b83017b90e607.tar.gz |
Fix (hopefully temporary) for breakage caused by my 08-21 patch.
* cpplex.c (_cpp_get_fresh_line): Check for null buffer.
(_cpp_lex_buffer): Likewise.
* cpptrad.c (_cpp_read_logical_line_trad): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70898 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cpptrad.c')
-rw-r--r-- | gcc/cpptrad.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cpptrad.c b/gcc/cpptrad.c index caeda891253..3c1bc2545c2 100644 --- a/gcc/cpptrad.c +++ b/gcc/cpptrad.c @@ -299,7 +299,8 @@ _cpp_read_logical_line_trad (cpp_reader *pfile) { do { - if (pfile->buffer->need_line && !_cpp_get_fresh_line (pfile)) + if ((pfile->buffer == NULL || pfile->buffer->need_line) + && !_cpp_get_fresh_line (pfile)) return false; } while (!_cpp_scan_out_logical_line (pfile, NULL) || pfile->state.skipping); |