diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-11-04 18:08:17 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2012-11-04 18:08:17 -0200 |
| commit | 52f9ccd298b3ff63f3ce3303d1b975ff8093f809 (patch) | |
| tree | 658831d9cc687dbdce304cb5dc01061edd010471 | |
| parent | a799ed5af91c642d12952586ca6ad5ad92bf7f44 (diff) | |
| download | lua-52f9ccd298b3ff63f3ce3303d1b975ff8093f809.tar.gz lua-52f9ccd298b3ff63f3ce3303d1b975ff8093f809.tar.bz2 lua-52f9ccd298b3ff63f3ce3303d1b975ff8093f809.zip | |
removed unreacheable 'lua_unlock'
| -rw-r--r-- | lapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||
