diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2015-04-07 01:32:07 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2015-04-07 01:32:07 +0300 |
commit | 256082c4f85e23888c3b56fbfcd86fc63547bd87 (patch) | |
tree | 5179a6b235fd53a7a16a85818c2274d8c0e8d69a /src | |
parent | eed7d47930be7920ca19c55ed66f9aef794ea73d (diff) | |
download | nginx-256082c4f85e23888c3b56fbfcd86fc63547bd87.tar.gz nginx-256082c4f85e23888c3b56fbfcd86fc63547bd87.zip |
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 (limited to 'src')
-rw-r--r-- | src/core/ngx_file.c | 4 |
1 files changed, 0 insertions, 4 deletions
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) { |