diff options
-rw-r--r-- | lstate.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lstate.c,v 2.6 2004/04/30 20:13:38 roberto Exp roberto $ | 2 | ** $Id: lstate.c,v 2.7 2004/05/31 18:51:50 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 | */ |
@@ -189,7 +189,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { | |||
189 | close_state(L); | 189 | close_state(L); |
190 | L = NULL; | 190 | L = NULL; |
191 | } | 191 | } |
192 | lua_userstateopen(L); | 192 | else |
193 | lua_userstateopen(L); | ||
193 | return L; | 194 | return L; |
194 | } | 195 | } |
195 | 196 | ||