]> git.kaiwu.me - nginx.git/commitdiff
Removed surplus initializations from ngx_conf_set_path_slot().
authorValentin Bartenev <vbart@nginx.com>
Mon, 16 Sep 2013 14:49:22 +0000 (18:49 +0400)
committerValentin Bartenev <vbart@nginx.com>
Mon, 16 Sep 2013 14:49:22 +0000 (18:49 +0400)
An instance of ngx_path_t is already zeroed by ngx_pcalloc().

src/core/ngx_file.c

index a6ef100e0b05a6c3576d3af3429588a5bd9e04e2..176bbb6c68ac7c1b0c76045c31b872cb7bbde59d 100644 (file)
@@ -359,9 +359,6 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
         return NULL;
     }
 
-    path->len = 0;
-    path->manager = NULL;
-    path->loader = NULL;
     path->conf_file = cf->conf_file->file.name.data;
     path->line = cf->conf_file->line;