aboutsummaryrefslogtreecommitdiff
path: root/liolib.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-06 16:09:08 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2015-03-06 16:09:08 -0300
commitd7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec (patch)
tree88086ccc3b0aa5aad77041ed49ef66c7214f7811 /liolib.c
parent297512b34c2d16bb7827ef61bd7b14467bfa4ecf (diff)
downloadlua-d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec.tar.gz
lua-d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec.tar.bz2
lua-d7d44b038dcdbd4b8f8261c6a9a02ec05c0ea0ec.zip
detail (use 'lua_pushliteral' to push an empty string)
Diffstat (limited to 'liolib.c')
-rw-r--r--liolib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/liolib.c b/liolib.c
index 18ca47d9..70f4ed68 100644
--- a/liolib.c
+++ b/liolib.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: liolib.c,v 2.141 2014/11/21 12:17:33 roberto Exp roberto $ 2** $Id: liolib.c,v 2.142 2015/01/02 12:50:28 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*/
@@ -457,7 +457,7 @@ static int read_number (lua_State *L, FILE *f) {
457static int test_eof (lua_State *L, FILE *f) { 457static int test_eof (lua_State *L, FILE *f) {
458 int c = getc(f); 458 int c = getc(f);
459 ungetc(c, f); /* no-op when c == EOF */ 459 ungetc(c, f); /* no-op when c == EOF */
460 lua_pushlstring(L, NULL, 0); 460 lua_pushliteral(L, "");
461 return (c != EOF); 461 return (c != EOF);
462} 462}
463 463