diff options
author | grahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-09 10:43:47 +0000 |
---|---|---|
committer | grahams <grahams@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-01-09 10:43:47 +0000 |
commit | 4bc83cd07687c4850808d5a1f20c8e8023e65f0c (patch) | |
tree | 5ee842f2a2fe1be2971f604f4ada41f02ce94d6f /gcc/cppfiles.c | |
parent | 4258c8144a242cdf79d350e6075f6ec3d7bc3a0c (diff) | |
download | gcc-4bc83cd07687c4850808d5a1f20c8e8023e65f0c.tar.gz |
* cppfiles.c (_cpp_execute_include): Move `len` initialisation
after `ptr` is initialised.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38826 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppfiles.c')
-rw-r--r-- | gcc/cppfiles.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cppfiles.c b/gcc/cppfiles.c index b0678d7def8..0549df3a163 100644 --- a/gcc/cppfiles.c +++ b/gcc/cppfiles.c @@ -654,7 +654,7 @@ _cpp_execute_include (pfile, header, no_reinclude, include_next) { char *p; struct file_name_list *ptr; - int len = strlen (ptr->name); + int len; /* If requested as a system header, assume it belongs in the first system header directory. */ @@ -663,6 +663,7 @@ _cpp_execute_include (pfile, header, no_reinclude, include_next) else ptr = CPP_OPTION (pfile, quote_include); + len = strlen (ptr->name); p = (char *) alloca (len + strlen (fname) + 2); if (len) { |