changeset 6070:3f5465a33fa8

Core: removed excessive initialization in ngx_conf_set_path_slot(). Level hierarchy is pre-zeroed in ngx_pcalloc() of the surrounding ngx_path_t.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 07 Apr 2015 01:32:07 +0300
parents e37ec0a33901
children 7bdd34cd2711
files src/core/ngx_file.c
diffstat 1 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/core/ngx_file.c	Tue Apr 07 01:32:05 2015 +0300
+++ b/src/core/ngx_file.c	Tue Apr 07 01:32:07 2015 +0300
@@ -372,10 +372,6 @@
         path->len += level + 1;
     }
 
-    while (i < 3) {
-        path->level[i++] = 0;
-    }
-
     *slot = path;
 
     if (ngx_add_path(cf, slot) == NGX_ERROR) {