Welcome! Log In Create A New Profile

Advanced

[nginx] Removed surplus initializations from ngx_conf_set_path_s...

Valentin Bartenev
September 16, 2013 11:08AM
details: http://hg.nginx.org/nginx/rev/dd9cb4edf499
branches:
changeset: 5376:dd9cb4edf499
user: Valentin Bartenev <vbart@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;


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Removed surplus initializations from ngx_conf_set_path_s...

Valentin Bartenev 546 September 16, 2013 11:08AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 156
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready