Commit 8e178c1d by Graham Stott

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
parent 28ec8d6b
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment