expand SSM during loadfile

This commit is contained in:
Cloud Wu
2019-04-02 20:47:27 +08:00
parent f8d55affba
commit 6f40120ad8
2 changed files with 8 additions and 2 deletions

View File

@@ -1175,6 +1175,7 @@ LUALIB_API int luaL_loadfilex (lua_State *L, const char *filename,
}
luaS_expandshr(4096);
int err = luaL_loadfilex_(eL, filename, mode);
luaS_expandshr(-4096);
if (err != LUA_OK) {
size_t sz = 0;
const char * msg = lua_tolstring(eL, -1, &sz);