From: Sergey Kandaurov Date: Mon, 6 Apr 2015 22:32:07 +0000 (+0300) Subject: Core: removed excessive initialization in ngx_conf_set_path_slot(). X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=256082c4f85e23888c3b56fbfcd86fc63547bd87;p=nginx.git 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 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) {