diff options
Diffstat (limited to 'lstate.c')
-rw-r--r-- | lstate.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.47 2008/08/26 13:27:42 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.48 2009/02/17 19:47:58 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 | */ |
@@ -175,6 +175,7 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
175 | setnilvalue(registry(L)); | 175 | setnilvalue(registry(L)); |
176 | luaZ_initbuffer(L, &g->buff); | 176 | luaZ_initbuffer(L, &g->buff); |
177 | g->panic = NULL; | 177 | g->panic = NULL; |
178 | g->nilobjp = luaO_nilobject; | ||
178 | g->gcstate = GCSpause; | 179 | g->gcstate = GCSpause; |
179 | g->rootgc = obj2gco(L); | 180 | g->rootgc = obj2gco(L); |
180 | g->sweepstrgc = 0; | 181 | g->sweepstrgc = 0; |