fix the previous commit

This commit is contained in:
Igor Sysoev 2009-04-17 19:09:08 +00:00
parent c7f876bd4c
commit b072c3d647

View File

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