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:
parent
28ec8d6bf8
commit
8e178c1d09
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue