aboutsummaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lapi.c b/lapi.c
index 9b6ca1ec..53eb1719 100644
--- a/lapi.c
+++ b/lapi.c
@@ -1122,6 +1122,7 @@ LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
1122 ZIO z; 1122 ZIO z;
1123 TStatus status; 1123 TStatus status;
1124 lua_lock(L); 1124 lua_lock(L);
1125 luaC_checkGC(L);
1125 if (!chunkname) chunkname = "?"; 1126 if (!chunkname) chunkname = "?";
1126 luaZ_init(L, &z, reader, data); 1127 luaZ_init(L, &z, reader, data);
1127 status = luaD_protectedparser(L, &z, chunkname, mode); 1128 status = luaD_protectedparser(L, &z, chunkname, mode);