Welcome! Log In Create A New Profile

Advanced

[nginx] Core: removed excessive initialization in ngx_conf_set_p...

Sergey Kandaurov
April 06, 2015 06:34PM
details: http://hg.nginx.org/nginx/rev/3f5465a33fa8
branches:
changeset: 6070:3f5465a33fa8
user: Sergey Kandaurov <pluknet@nginx.com>
date: Tue Apr 07 01:32:07 2015 +0300
description:
Core: removed excessive initialization in ngx_conf_set_path_slot().

Level hierarchy is pre-zeroed in ngx_pcalloc() of the surrounding ngx_path_t.

diffstat:

src/core/ngx_file.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)

diffs (14 lines):

diff -r e37ec0a33901 -r 3f5465a33fa8 src/core/ngx_file.c
--- a/src/core/ngx_file.c Tue Apr 07 01:32:05 2015 +0300
+++ b/src/core/ngx_file.c Tue Apr 07 01:32:07 2015 +0300
@@ -372,10 +372,6 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, n
path->len += level + 1;
}

- while (i < 3) {
- path->level[i++] = 0;
- }
-
*slot = path;

if (ngx_add_path(cf, slot) == NGX_ERROR) {

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

[nginx] Core: removed excessive initialization in ngx_conf_set_p...

Sergey Kandaurov 397 April 06, 2015 06:34PM



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

Online Users

Guests: 240
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