Skip to content

Commit

Permalink
fixed a coding style issue: we did not declare C variables at the beg…
Browse files Browse the repository at this point in the history
…inning of the current code block in ngx_http_lua_del_thread, reported by runner-mei in github issue openresty#93.
  • Loading branch information
agentzh committed Mar 21, 2012
1 parent e84711d commit 1a1cde4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ngx_http_lua_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1a1cde4

Please sign in to comment.