commit 118e471fa0fd9db1c3a4b966a4312f65d4aa33a7
parent ba9878fcb8ea64bf582c561ed0f472fd6fd0d850
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 2 Jun 2004 16:09:14 -0300
details
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lstate.c b/lstate.c
@@ -1,5 +1,5 @@
/*
-** $Id: lstate.c,v 2.6 2004/04/30 20:13:38 roberto Exp roberto $
+** $Id: lstate.c,v 2.7 2004/05/31 18:51:50 roberto Exp roberto $
** Global State
** See Copyright Notice in lua.h
*/
@@ -189,7 +189,8 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {
close_state(L);
L = NULL;
}
- lua_userstateopen(L);
+ else
+ lua_userstateopen(L);
return L;
}