[nginx] Request body: removed surplus assigment, no functional c...

Valentin Bartenev vbart at nginx.com
Tue Jan 12 16:20:24 UTC 2016


details:   http://hg.nginx.org/nginx/rev/02abce4764b7
branches:  
changeset: 6336:02abce4764b7
user:      Valentin Bartenev <vbart at nginx.com>
date:      Tue Jan 12 19:19:07 2016 +0300
description:
Request body: removed surplus assigment, no functional changes.

Setting rb->bufs to NULL is surplus after ngx_http_write_request_body()
has returned NGX_OK.

diffstat:

 src/http/ngx_http_request_body.c |  6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diffs (23 lines):

diff -r 96c4297375bc -r 02abce4764b7 src/http/ngx_http_request_body.c
--- a/src/http/ngx_http_request_body.c	Mon Jan 11 19:23:17 2016 +0300
+++ b/src/http/ngx_http_request_body.c	Tue Jan 12 19:19:07 2016 +0300
@@ -172,9 +172,6 @@ ngx_http_read_client_request_body(ngx_ht
                 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
             b->file = &rb->temp_file->file;
 
             rb->bufs = cl;
-
-        } else {
-            rb->bufs = NULL;
         }
     }
 



More information about the nginx-devel mailing list