aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-11-04 18:08:17 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2012-11-04 18:08:17 -0200
commit52f9ccd298b3ff63f3ce3303d1b975ff8093f809 (patch)
tree658831d9cc687dbdce304cb5dc01061edd010471
parenta799ed5af91c642d12952586ca6ad5ad92bf7f44 (diff)
downloadlua-52f9ccd298b3ff63f3ce3303d1b975ff8093f809.tar.gz
lua-52f9ccd298b3ff63f3ce3303d1b975ff8093f809.tar.bz2
lua-52f9ccd298b3ff63f3ce3303d1b975ff8093f809.zip
removed unreacheable 'lua_unlock'
-rw-r--r--lapi.c4
1 files 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 @@
1/* 1/*
2** $Id: lapi.c,v 2.166 2012/09/11 18:21:44 roberto Exp roberto $ 2** $Id: lapi.c,v 2.167 2012/10/19 15:52:46 roberto Exp roberto $
3** Lua API 3** Lua API
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -1104,7 +1104,7 @@ LUA_API int lua_error (lua_State *L) {
1104 lua_lock(L); 1104 lua_lock(L);
1105 api_checknelems(L, 1); 1105 api_checknelems(L, 1);
1106 luaG_errormsg(L); 1106 luaG_errormsg(L);
1107 lua_unlock(L); 1107 /* code unreacheable; will unlock when control actually leaves the kernel */
1108 return 0; /* to avoid warnings */ 1108 return 0; /* to avoid warnings */
1109} 1109}
1110 1110