Core: set nginx_shared_zone name via ngx_str_set().

This commit is contained in:
Ruslan Ermilov 2017-03-28 11:28:51 +03:00
parent 65f0ad22fa
commit eb017e75cf

View File

@ -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) {