Skip to content

Commit

Permalink
fix unused erroring
Browse files Browse the repository at this point in the history
  • Loading branch information
vislee committed May 17, 2018
1 parent 42a225b commit b1b5746
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ngx_http_waf_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -4331,7 +4331,7 @@ ngx_http_waf_log_format(ngx_http_request_t *r, ngx_http_waf_ctx_t *ctx,
static ngx_int_t
ngx_http_waf_log_handler(ngx_http_request_t *r)
{
u_char line[NGX_HTTP_WAF_MAX_LOG_STR], *p, *buf;
u_char line[NGX_HTTP_WAF_MAX_LOG_STR], *p;
size_t len;
ngx_http_waf_ctx_t *ctx;
ngx_http_waf_loc_conf_t *wlcf;
Expand All @@ -4351,7 +4351,6 @@ ngx_http_waf_log_handler(ngx_http_request_t *r)

len = sizeof(line);
ngx_memzero(line, len);
buf = line;

p = ngx_http_waf_log_format(r, ctx, wlcf->log->flat, line, sizeof(line));

Expand Down

0 comments on commit b1b5746

Please sign in to comment.