diff options
Diffstat (limited to 'lbaselib.c')
-rw-r--r-- | lbaselib.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lbaselib.c,v 1.274 2012/04/27 14:13:19 roberto Exp roberto $ | 2 | ** $Id: lbaselib.c,v 1.275 2012/12/03 20:18:02 roberto Exp roberto $ |
3 | ** Basic library | 3 | ** Basic library |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -336,7 +336,8 @@ static int dofilecont (lua_State *L) { | |||
336 | static int luaB_dofile (lua_State *L) { | 336 | static int luaB_dofile (lua_State *L) { |
337 | const char *fname = luaL_optstring(L, 1, NULL); | 337 | const char *fname = luaL_optstring(L, 1, NULL); |
338 | lua_settop(L, 1); | 338 | lua_settop(L, 1); |
339 | if (luaL_loadfile(L, fname) != LUA_OK) lua_error(L); | 339 | if (luaL_loadfile(L, fname) != LUA_OK) |
340 | return lua_error(L); | ||
340 | lua_callk(L, 0, LUA_MULTRET, 0, dofilecont); | 341 | lua_callk(L, 0, LUA_MULTRET, 0, dofilecont); |
341 | return dofilecont(L); | 342 | return dofilecont(L); |
342 | } | 343 | } |