]> git.kaiwu.me - nginx.git/commitdiff
Request body: removed surplus assigment, no functional changes.
authorValentin Bartenev <vbart@nginx.com>
Tue, 12 Jan 2016 16:19:07 +0000 (19:19 +0300)
committerValentin Bartenev <vbart@nginx.com>
Tue, 12 Jan 2016 16:19:07 +0000 (19:19 +0300)
Setting rb->bufs to NULL is surplus after ngx_http_write_request_body()
has returned NGX_OK.

src/http/ngx_http_request_body.c

index 77e92e3f47bd957fbf51c6e70116fcd230016b88..e9562c0beb58ca2c8c3e0dfa4ad0a475dbd3fc93 100644 (file)
@@ -172,9 +172,6 @@ ngx_http_read_client_request_body(ngx_http_request_t *r,
                 b->file = &rb->temp_file->file;
 
                 rb->bufs = cl;
-
-            } else {
-                rb->bufs = NULL;
             }
         }
 
@@ -466,9 +463,6 @@ ngx_http_do_read_client_request_body(ngx_http_request_t *r)
             b->file = &rb->temp_file->file;
 
             rb->bufs = cl;
-
-        } else {
-            rb->bufs = NULL;
         }
     }