Commit d75e62a9 by Richard Stallman

(finclude): Clean error msf if file_size_and_mode fails.

From-SVN: r1558
parent 8a958768
...@@ -3972,7 +3972,11 @@ finclude (f, fname, op, system_header_p, dirptr) ...@@ -3972,7 +3972,11 @@ finclude (f, fname, op, system_header_p, dirptr)
CHECK_DEPTH (return;); CHECK_DEPTH (return;);
if (file_size_and_mode (f, &st_mode, &st_size) < 0) if (file_size_and_mode (f, &st_mode, &st_size) < 0)
goto nope; /* Impossible? */ {
perror_with_name (fname);
close (f);
return;
}
fp = &instack[indepth + 1]; fp = &instack[indepth + 1];
bzero (fp, sizeof (FILE_BUF)); bzero (fp, sizeof (FILE_BUF));
......
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