Skip to content

Commit

Permalink
style: fixed coding style issues caught by ngx-releng.
Browse files Browse the repository at this point in the history
  • Loading branch information
agentzh committed Jan 15, 2018
1 parent 208cbd1 commit 580ea53
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ngx_http_rds_csv_filter_module.c
Expand Up @@ -262,7 +262,7 @@ static ngx_int_t
ngx_http_rds_csv_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
{
ngx_http_rds_csv_ctx_t *ctx;
ngx_int_t rc;
ngx_int_t rc;

if (in == NULL || r->header_only) {
return ngx_http_rds_csv_next_body_filter(r, in);
Expand All @@ -275,6 +275,7 @@ ngx_http_rds_csv_body_filter(ngx_http_request_t *r, ngx_chain_t *in)
}

switch (ctx->state) {

case state_expect_header:
rc = ngx_http_rds_csv_process_header(r, in, ctx);
break;
Expand Down
3 changes: 2 additions & 1 deletion src/ngx_http_rds_csv_util.c
Expand Up @@ -94,7 +94,8 @@ ngx_http_rds_csv_discard_bufs(ngx_pool_t *pool, ngx_chain_t *in)
for (cl = in; cl; cl = cl->next) {
#if 0
if (cl->buf->temporary
&& ngx_buf_size(cl->buf) > 0) {
&& ngx_buf_size(cl->buf) > 0)
{
ngx_pfree(pool, cl->buf->start);
}
#endif
Expand Down

0 comments on commit 580ea53

Please sign in to comment.