From 8e178c1d09d772144d5200306042b0561322a0cd Mon Sep 17 00:00:00 2001 From: Graham Stott Date: Tue, 9 Jan 2001 10:43:47 +0000 Subject: [PATCH] cppfiles.c (_cpp_execute_include): Move `len` initialisation after `ptr` is initialised. * cppfiles.c (_cpp_execute_include): Move `len` initialisation after `ptr` is initialised. From-SVN: r38826 --- gcc/cppfiles.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.30.2