Commit 788b94f5 authored by Per Cederqvist's avatar Per Cederqvist

Avoid calling ungetc() on EOF.

* src/server/ram-parse.c (fskipwhite): Don't unget EOF.
parent 12a5f63e
2009-05-31 Per Cederqvist <ceder@lysator.liu.se>
Avoid calling ungetc() on EOF.
* src/server/ram-parse.c (fskipwhite): Don't unget EOF.
2008-03-31 Per Cederqvist <ceder@lysator.liu.se>
Turn off the garb by default, due to popular request.
......
......@@ -72,7 +72,8 @@ fskipwhite(struct dbfile *fp)
while ( (c = dbfile_getc(fp)) != EOF && /* isascii(c) && */ isspace(c) )
;
dbfile_ungetc(fp, c);
if (c != EOF)
dbfile_ungetc(fp, c);
}
extern unsigned long
......
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