diff options
Diffstat (limited to 'libs/liblua/src/lstate.c')
-rw-r--r-- | libs/liblua/src/lstate.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/liblua/src/lstate.c b/libs/liblua/src/lstate.c index 0c056f9041..c1a76643c3 100644 --- a/libs/liblua/src/lstate.c +++ b/libs/liblua/src/lstate.c @@ -1,5 +1,5 @@ /* -** $Id: lstate.c,v 2.132 2015/11/02 16:01:41 roberto Exp roberto $ +** $Id: lstate.c,v 2.133.1.1 2017/04/19 17:39:34 roberto Exp $ ** Global State ** See Copyright Notice in lua.h */ @@ -339,9 +339,6 @@ LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) { LUA_API void lua_close (lua_State *L) { - if (!L) - return; - L = G(L)->mainthread; /* only the main thread can be closed */ lua_lock(L); close_state(L); |