mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 02:09:04 +08:00
fix the previous commit
This commit is contained in:
parent
c7f876bd4c
commit
b072c3d647
@ -482,7 +482,7 @@ ngx_init_cycle(ngx_cycle_t *old_cycle)
|
|||||||
#else
|
#else
|
||||||
|
|
||||||
lock_file = ngx_pnalloc(cycle->pool,
|
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) {
|
if (lock_file == NULL) {
|
||||||
goto failed;
|
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,
|
(void) ngx_cpystrn(ngx_cpymem(lock_file, cycle->lock_file.data,
|
||||||
cycle->lock_file.len),
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user