Fix failure with pragma once where buffer is NULL and buffer_valid is true.

PR preprocessor/24202
* files.c (_cpp_pop_file_buffer): Set buffer_valid to false.

From-SVN: r106472
This commit is contained in:
James E Wilson 2005-11-03 18:10:19 -08:00 committed by Jim Wilson
parent 95cd6f6f66
commit 5571f74f66
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-11-03 James E Wilson <wilson@specifix.com>
PR preprocessor/24202
* files.c (_cpp_pop_file_buffer): Set buffer_valid to false.
2005-11-04 Joseph S. Myers <joseph@codesourcery.com>
* include/cpplib.h (struct cpp_callbacks): Make error take

View File

@ -1143,6 +1143,7 @@ _cpp_pop_file_buffer (cpp_reader *pfile, _cpp_file *file)
{
free ((void *) file->buffer);
file->buffer = NULL;
file->buffer_valid = false;
}
}