Permalink
Browse files

fixed a coding style issue: we did not declare C variables at the beg…

…inning of the current code block in ngx_http_lua_del_thread, reported by runner-mei in github issue #93.
  • Loading branch information...
agentzh committed Mar 21, 2012
1 parent e84711d commit 1a1cde4caaa72aacee929855541c085d6953b6ef
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ngx_http_lua_util.c
View
@@ -217,14 +217,15 @@ ngx_http_lua_del_thread(ngx_http_request_t *r, lua_State *L, int ref,
int force_quit)
{
ngx_http_lua_ctx_t *ctx;
+ lua_State *cr;
ngx_log_debug0(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
"lua deleting thread");
lua_getfield(L, LUA_REGISTRYINDEX, NGX_LUA_CORT_REF);
lua_rawgeti(L, -1, ref);
- lua_State *cr = lua_tothread(L, -1);
+ cr = lua_tothread(L, -1);
lua_pop(L, 1);
dd("cr: %p, force quit: %d", cr, (int) force_quit);

0 comments on commit 1a1cde4

Please sign in to comment.