Welcome! Log In Create A New Profile

Advanced

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

Valentin Bartenev
January 12, 2016 11:22AM
details: http://hg.nginx.org/nginx/rev/02abce4764b7
branches:
changeset: 6336:02abce4764b7
user: Valentin Bartenev <vbart@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;
}
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

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

Valentin Bartenev 384 January 12, 2016 11:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 192
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready