Klaus Demo nginx / 9063bc8
Win32: fixed memory allocation for shmem name (ticket #134). Maxim Dounin 10 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1414 u_char *name;
1515 uint64_t size;
1616
17 name = ngx_alloc(shm->name.len + 2 + sizeof(NGX_INT32_LEN), shm->log);
17 name = ngx_alloc(shm->name.len + 2 + NGX_INT32_LEN, shm->log);
1818 if (name == NULL) {
1919 return NGX_ERROR;
2020 }