diff options
-rw-r--r-- | lstate.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 1.116 2002/11/22 17:16:52 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 1.117 2002/12/04 17:38:31 roberto Exp roberto $ |
3 | ** Global State | 3 | ** Global State |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -182,6 +182,8 @@ LUA_API lua_State *lua_open (void) { | |||
182 | lua_State *L = mallocstate(NULL); | 182 | lua_State *L = mallocstate(NULL); |
183 | if (L) { /* allocation OK? */ | 183 | if (L) { /* allocation OK? */ |
184 | L->tt = LUA_TTHREAD; | 184 | L->tt = LUA_TTHREAD; |
185 | L->marked = 0; | ||
186 | L->next = L->gclist = NULL; | ||
185 | preinit_state(L); | 187 | preinit_state(L); |
186 | L->l_G = NULL; | 188 | L->l_G = NULL; |
187 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { | 189 | if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) { |