# HG changeset patch # User Sergey Kandaurov # Date 1428359527 -10800 # Node ID 3f5465a33fa8475bd859e43c30b1ceba2bc84286 # Parent e37ec0a33901d74ed9c7ab62432afa33c5c1682f Core: removed excessive initialization in ngx_conf_set_path_slot(). Level hierarchy is pre-zeroed in ngx_pcalloc() of the surrounding ngx_path_t. diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c --- 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, n path->len += level + 1; } - while (i < 3) { - path->level[i++] = 0; - } - *slot = path; if (ngx_add_path(cf, slot) == NGX_ERROR) {