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
This commit is contained in:
Graham Stott 2001-01-09 10:43:47 +00:00
parent 28ec8d6bf8
commit 8e178c1d09
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{