summaryrefslogtreecommitdiff
path: root/lib/lua/src/lauxlib.c
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2018-05-30 16:30:44 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2018-05-30 16:30:44 +0200
commitddd03c38a418c9f2ed204bf4fa68fd1d5feac11f (patch)
tree37b5d8f02fe8f1de111a9d67b4c128edc9d656c5 /lib/lua/src/lauxlib.c
parente3e98f935687ba60512889a5ddc62010216aa331 (diff)
downloadminetest-ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f.tar.gz
minetest-ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f.tar.bz2
minetest-ddd03c38a418c9f2ed204bf4fa68fd1d5feac11f.zip
Update embedded Lua to 5.1.5 (#7387)
Diffstat (limited to 'lib/lua/src/lauxlib.c')
-rw-r--r--lib/lua/src/lauxlib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/lua/src/lauxlib.c b/lib/lua/src/lauxlib.c
index be41ebcd3..10f14e2c0 100644
--- a/lib/lua/src/lauxlib.c
+++ b/lib/lua/src/lauxlib.c
@@ -574,8 +574,7 @@ LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) {
lf.f = freopen(filename, "rb", lf.f); /* reopen in binary mode */
if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
/* skip eventual `#!...' */
- while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0])
- {}
+ while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
lf.extraline = 0;
}
ungetc(c, lf.f);