From 256082c4f85e23888c3b56fbfcd86fc63547bd87 Mon Sep 17 00:00:00 2001 From: Sergey Kandaurov Date: Tue, 7 Apr 2015 01:32:07 +0300 Subject: Core: removed excessive initialization in ngx_conf_set_path_slot(). Level hierarchy is pre-zeroed in ngx_pcalloc() of the surrounding ngx_path_t. --- src/core/ngx_file.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index ad2b3c953..a8b07ecea 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -372,10 +372,6 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) path->len += level + 1; } - while (i < 3) { - path->level[i++] = 0; - } - *slot = path; if (ngx_add_path(cf, slot) == NGX_ERROR) { -- cgit v1.2.3