Commit 225c7a07 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(read1): After #!, exit loop on eof.

parent 194600a8
2003-03-14 Richard M. Stallman <rms@gnu.org>
* lread.c (read1): After #!, exit loop on eof.
2003-03-14 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
* gtkutil.h: Add declaration for xg_frame_cleared.
......
......@@ -2127,7 +2127,7 @@ read1 (readcharfun, pch, first_in_list)
{
/* #! appears at the beginning of an executable file.
Skip the first line. */
while (c != '\n')
while (c != '\n' && c >= 0)
c = READCHAR;
goto retry;
}
......
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