From 118e471fa0fd9db1c3a4b966a4312f65d4aa33a7 Mon Sep 17 00:00:00 2001
From: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date: Wed, 2 Jun 2004 16:09:36 -0300
Subject: details

---
 lstate.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/lstate.c b/lstate.c
index 890d1d77..db4efa03 100644
--- 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;
 }
 
-- 
cgit v1.2.3-55-g6feb