[nginx] Dynamic modules: removed unnecessary initialization.

Ruslan Ermilov ru at nginx.com
Thu Feb 25 13:30:04 UTC 2016


details:   http://hg.nginx.org/nginx/rev/ce946e0976dc
branches:  
changeset: 6417:ce946e0976dc
user:      Ruslan Ermilov <ru at nginx.com>
date:      Thu Feb 25 16:29:51 2016 +0300
description:
Dynamic modules: removed unnecessary initialization.

It became unnecessary after 85dea406e18f.

diffstat:

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

diffs (11 lines):

diff -r 35487ea55cb6 -r ce946e0976dc src/core/ngx_module.c
--- a/src/core/ngx_module.c	Thu Feb 25 15:22:05 2016 +0300
+++ b/src/core/ngx_module.c	Thu Feb 25 16:29:51 2016 +0300
@@ -27,7 +27,6 @@ ngx_preinit_modules()
 {
     ngx_uint_t  i;
 
-    ngx_max_module = 0;
     for (i = 0; ngx_modules[i]; i++) {
         ngx_modules[i]->index = i;
         ngx_modules[i]->name = ngx_module_names[i];



More information about the nginx-devel mailing list