diff options
author | Per Bothner <per@bothner.com> | 2003-08-28 18:07:42 -0700 |
---|---|---|
committer | Per Bothner <bothner@gcc.gnu.org> | 2003-08-28 18:07:42 -0700 |
commit | 2be570f916a5bfa25b09f4acd44c14f5df662889 (patch) | |
tree | 9442b173a19736f0540708f50520b30a3d617823 /gcc/cpptrad.c | |
parent | f1e77d8350a2f1264dea6e31eb3e8278a0598ef6 (diff) | |
download | gcc-2be570f916a5bfa25b09f4acd44c14f5df662889.zip gcc-2be570f916a5bfa25b09f4acd44c14f5df662889.tar.gz gcc-2be570f916a5bfa25b09f4acd44c14f5df662889.tar.bz2 |
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.
From-SVN: r70898
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 caeda89..3c1bc25 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); |