mirror of
https://github.com/nginx/nginx.git
synced 2024-12-12 02:09:04 +08:00
Win32: fixed memory allocation for shmem name (ticket #134).
This commit is contained in:
parent
a5d4f66ad6
commit
9063bc8713
@ -15,7 +15,7 @@ ngx_shm_alloc(ngx_shm_t *shm)
|
||||
u_char *name;
|
||||
uint64_t size;
|
||||
|
||||
name = ngx_alloc(shm->name.len + 2 + sizeof(NGX_INT32_LEN), shm->log);
|
||||
name = ngx_alloc(shm->name.len + 2 + NGX_INT32_LEN, shm->log);
|
||||
if (name == NULL) {
|
||||
return NGX_ERROR;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user