Mercurial > hg > nginx
comparison src/core/ngx_module.c @ 6417:ce946e0976dc
Dynamic modules: removed unnecessary initialization.
It became unnecessary after 85dea406e18f.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 25 Feb 2016 16:29:51 +0300 |
parents | 5fe617f38222 |
children | 3600bbfb43e3 |
comparison
equal
deleted
inserted
replaced
6416:35487ea55cb6 | 6417:ce946e0976dc |
---|---|
25 ngx_int_t | 25 ngx_int_t |
26 ngx_preinit_modules() | 26 ngx_preinit_modules() |
27 { | 27 { |
28 ngx_uint_t i; | 28 ngx_uint_t i; |
29 | 29 |
30 ngx_max_module = 0; | |
31 for (i = 0; ngx_modules[i]; i++) { | 30 for (i = 0; ngx_modules[i]; i++) { |
32 ngx_modules[i]->index = i; | 31 ngx_modules[i]->index = i; |
33 ngx_modules[i]->name = ngx_module_names[i]; | 32 ngx_modules[i]->name = ngx_module_names[i]; |
34 } | 33 } |
35 | 34 |