diff options
-rw-r--r-- | liolib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: liolib.c,v 2.113 2013/05/14 15:57:43 roberto Exp roberto $ | 2 | ** $Id: liolib.c,v 2.114 2013/06/07 19:01:35 roberto Exp roberto $ |
3 | ** Standard I/O (and system) library | 3 | ** Standard I/O (and system) library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -375,7 +375,7 @@ static int read_number (lua_State *L, FILE *f) { | |||
375 | 375 | ||
376 | static int test_eof (lua_State *L, FILE *f) { | 376 | static int test_eof (lua_State *L, FILE *f) { |
377 | int c = getc(f); | 377 | int c = getc(f); |
378 | ungetc(c, f); | 378 | ungetc(c, f); /* no-op when c == EOF */ |
379 | lua_pushlstring(L, NULL, 0); | 379 | lua_pushlstring(L, NULL, 0); |
380 | return (c != EOF); | 380 | return (c != EOF); |
381 | } | 381 | } |