comparison src/event/modules/ngx_eventport_module.c @ 2912:c7d57b539248

return NULL instead of NGX_CONF_ERROR on a create conf failure
author Igor Sysoev <igor@sysoev.ru>
date Tue, 02 Jun 2009 16:09:44 +0000
parents 6e7daf852eec
children d4c4cfdffe30 e1409e56ba7c
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
579 { 579 {
580 ngx_eventport_conf_t *epcf; 580 ngx_eventport_conf_t *epcf;
581 581
582 epcf = ngx_palloc(cycle->pool, sizeof(ngx_eventport_conf_t)); 582 epcf = ngx_palloc(cycle->pool, sizeof(ngx_eventport_conf_t));
583 if (epcf == NULL) { 583 if (epcf == NULL) {
584 return NGX_CONF_ERROR; 584 return NULL;
585 } 585 }
586 586
587 epcf->events = NGX_CONF_UNSET; 587 epcf->events = NGX_CONF_UNSET;
588 588
589 return epcf; 589 return epcf;