From 754c6307544f751d870c7b6636196e4405cab0b6 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 19 Dec 2002 11:21:08 -0200 Subject: [PATCH] details --- lstate.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lstate.c b/lstate.c index 9b25c71b..2744a5de 100644 --- a/lstate.c +++ b/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 1.116 2002/11/22 17:16:52 roberto Exp roberto $ +** $Id: lstate.c,v 1.117 2002/12/04 17:38:31 roberto Exp roberto $ ** Global State ** See Copyright Notice in lua.h */ @@ -182,6 +182,8 @@ LUA_API lua_State *lua_open (void) { lua_State *L = mallocstate(NULL); if (L) { /* allocation OK? */ L->tt = LUA_TTHREAD; + L->marked = 0; + L->next = L->gclist = NULL; preinit_state(L); L->l_G = NULL; if (luaD_rawrunprotected(L, f_luaopen, NULL) != 0) {