From 52f9ccd298b3ff63f3ce3303d1b975ff8093f809 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 4 Nov 2012 18:08:17 -0200 Subject: removed unreacheable 'lua_unlock' --- lapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lapi.c b/lapi.c index 34856950..1ba2997c 100644 --- a/lapi.c +++ b/lapi.c @@ -1,5 +1,5 @@ /* -** $Id: lapi.c,v 2.166 2012/09/11 18:21:44 roberto Exp roberto $ +** $Id: lapi.c,v 2.167 2012/10/19 15:52:46 roberto Exp roberto $ ** Lua API ** See Copyright Notice in lua.h */ @@ -1104,7 +1104,7 @@ LUA_API int lua_error (lua_State *L) { lua_lock(L); api_checknelems(L, 1); luaG_errormsg(L); - lua_unlock(L); + /* code unreacheable; will unlock when control actually leaves the kernel */ return 0; /* to avoid warnings */ } -- cgit v1.2.3-55-g6feb