comparison src/http/modules/ngx_http_rewrite_module.c @ 3001:cf21d35248bc

fix return value
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Jul 2009 11:04:28 +0000
parents c7d57b539248
children 88f972ffe96e
comparison
equal deleted inserted replaced
3000:66ef86affbb8 3001:cf21d35248bc
566 return NGX_CONF_ERROR; 566 return NGX_CONF_ERROR;
567 } 567 }
568 568
569 if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t)); 569 if_code = ngx_array_push_n(lcf->codes, sizeof(ngx_http_script_if_code_t));
570 if (if_code == NULL) { 570 if (if_code == NULL) {
571 return NULL; 571 return NGX_CONF_ERROR;
572 } 572 }
573 573
574 if_code->code = ngx_http_script_if_code; 574 if_code->code = ngx_http_script_if_code;
575 575
576 elts = lcf->codes->elts; 576 elts = lcf->codes->elts;