mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 13:04:26 +00:00
Win32: fixed memory allocation for shmem name (ticket #134).
This commit is contained in:
parent
a5d4f66ad6
commit
9063bc8713
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue