comparison src/event/modules/ngx_epoll_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 90312b616162
children a66d6dfd53f1 e1409e56ba7c
comparison
equal deleted inserted replaced
2911:32b444fa2ca4 2912:c7d57b539248
550 { 550 {
551 ngx_epoll_conf_t *epcf; 551 ngx_epoll_conf_t *epcf;
552 552
553 epcf = ngx_palloc(cycle->pool, sizeof(ngx_epoll_conf_t)); 553 epcf = ngx_palloc(cycle->pool, sizeof(ngx_epoll_conf_t));
554 if (epcf == NULL) { 554 if (epcf == NULL) {
555 return NGX_CONF_ERROR; 555 return NULL;
556 } 556 }
557 557
558 epcf->events = NGX_CONF_UNSET; 558 epcf->events = NGX_CONF_UNSET;
559 559
560 return epcf; 560 return epcf;