From eb017e75cf1b1d82179935b0e23d0c3451b33a87 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Tue, 28 Mar 2017 11:28:51 +0300 Subject: [PATCH] Core: set nginx_shared_zone name via ngx_str_set(). --- src/event/ngx_event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/event/ngx_event.c b/src/event/ngx_event.c index dca41eec3..57af81324 100644 --- a/src/event/ngx_event.c +++ b/src/event/ngx_event.c @@ -500,8 +500,7 @@ ngx_event_module_init(ngx_cycle_t *cycle) #endif shm.size = size; - shm.name.len = sizeof("nginx_shared_zone") - 1; - shm.name.data = (u_char *) "nginx_shared_zone"; + ngx_str_set(&shm.name, "nginx_shared_zone"); shm.log = cycle->log; if (ngx_shm_alloc(&shm) != NGX_OK) {