diff options
| author | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-09 09:30:43 +0000 |
|---|---|---|
| committer | aoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-09 09:30:43 +0000 |
| commit | 8744fb7e072e53244dbe421424b27e4079fa8d60 (patch) | |
| tree | 6a914eec78331aa78c3ba5cf75eb5831f611cb32 /gcc/cppinit.c | |
| parent | 69f720eca0e1cefe4d8b0b35c55de0896dfb229d (diff) | |
| download | ppe42-gcc-8744fb7e072e53244dbe421424b27e4079fa8d60.tar.gz ppe42-gcc-8744fb7e072e53244dbe421424b27e4079fa8d60.zip | |
* cppinit.c (cpp_cleanup): NULLify macro_buffer and zero
macro_buffer_len.
* cppmacro.c (cpp_macro_definition): Reset macro_buffer_len when
realloc()ing macro_buffer.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38821 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppinit.c')
| -rw-r--r-- | gcc/cppinit.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cppinit.c b/gcc/cppinit.c index 12844d9ac91..44e10c830b6 100644 --- a/gcc/cppinit.c +++ b/gcc/cppinit.c @@ -570,7 +570,11 @@ cpp_cleanup (pfile) cpp_pop_buffer (pfile); if (pfile->macro_buffer) - free ((PTR) pfile->macro_buffer); + { + free ((PTR) pfile->macro_buffer); + pfile->macro_buffer = NULL; + pfile->macro_buffer_len = 0; + } deps_free (pfile->deps); |

