aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-04-17 19:09:08 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-04-17 19:09:08 +0000
commitb072c3d647545cadd3aea4d28dad97cf1af01b31 (patch)
tree21e1d4a339d36273f4cc6aa4fdfb7f9bea753da1 /src
parentc7f876bd4c3916b5a1553da88d73d97d76ac72e3 (diff)
downloadnginx-b072c3d647545cadd3aea4d28dad97cf1af01b31.tar.gz
nginx-b072c3d647545cadd3aea4d28dad97cf1af01b31.zip
fix the previous commit
Diffstat (limited to 'src')
-rw-r--r--src/core/ngx_cycle.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index 42aa18b44..ee5ac5216 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -482,7 +482,7 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
#else
lock_file = ngx_pnalloc(cycle->pool,
- cycle->lock_file.len + shm_zone[i].name.len);
+ cycle->lock_file.len + shm_zone[i].shm.name.len);
if (lock_file == NULL) {
goto failed;
@@ -490,7 +490,8 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
(void) ngx_cpystrn(ngx_cpymem(lock_file, cycle->lock_file.data,
cycle->lock_file.len),
- shm_zone[i].name.data, shm_zone[i].name.len + 1);
+ shm_zone[i].shm.name.data,
+ shm_zone[i].shm.name.len + 1);
#endif