mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 14:46:20 +08:00
Core: removed excessive initialization in ngx_conf_set_path_slot().
Level hierarchy is pre-zeroed in ngx_pcalloc() of the surrounding ngx_path_t.
This commit is contained in:
parent
eed7d47930
commit
256082c4f8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user