From a979d9fb304e41e0be027d757dccaaba2b114a18 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 29 Nov 2010 15:00:02 +0000 Subject: [PATCH] move ngx_strerror_init() at the very start --- src/core/nginx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/nginx.c b/src/core/nginx.c index ffd63cf59..b8bab37e3 100644 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -203,6 +203,10 @@ main(int argc, char *const *argv) ngx_cycle_t *cycle, init_cycle; ngx_core_conf_t *ccf; + if (ngx_strerror_init() != NGX_OK) { + return 1; + } + if (ngx_get_options(argc, argv) != NGX_OK) { return 1; } @@ -270,10 +274,6 @@ main(int argc, char *const *argv) ngx_pid = ngx_getpid(); - if (ngx_strerror_init() != NGX_OK) { - return 1; - } - log = ngx_log_init(ngx_prefix); if (log == NULL) { return 1;