[nginx] Removed surplus initializations from ngx_conf_set_path_s...

Valentin Bartenev vbart at nginx.com
Mon Sep 16 15:07:22 UTC 2013


details:   http://hg.nginx.org/nginx/rev/dd9cb4edf499
branches:  
changeset: 5376:dd9cb4edf499
user:      Valentin Bartenev <vbart at nginx.com>
date:      Mon Sep 16 18:49:22 2013 +0400
description:
Removed surplus initializations from ngx_conf_set_path_slot().

An instance of ngx_path_t is already zeroed by ngx_pcalloc().

diffstat:

 src/core/ngx_file.c |  3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diffs (13 lines):

diff -r 7d8770196436 -r dd9cb4edf499 src/core/ngx_file.c
--- a/src/core/ngx_file.c	Mon Sep 16 18:49:10 2013 +0400
+++ b/src/core/ngx_file.c	Mon Sep 16 18:49:22 2013 +0400
@@ -359,9 +359,6 @@ ngx_conf_set_path_slot(ngx_conf_t *cf, n
         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;
 



More information about the nginx-devel mailing list