Bug in ngx_slab.c ?

double nginx-forum at nginx.us
Sat Feb 6 22:20:36 MSK 2010


Hello,

In "ngx_slab.c":


static ngx_uint_t  ngx_slab_max_size;
[...]
void ngx_slab_init(ngx_slab_pool_t *pool)
{
    if (ngx_slab_max_size == 0) {


Could one be sure, that "ngx_slab_max_size" is always "0"?
Maybe better:


static ngx_uint_t  ngx_slab_max_size = 0;


Thanks
Marcus

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,51479,51479#msg-51479




More information about the nginx mailing list