diff options
| -rw-r--r-- | lapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
| @@ -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); |
