Mercurial > hg > nginx
comparison src/http/ngx_http_script.c @ 2911:32b444fa2ca4
fix return value on failure
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 02 Jun 2009 16:08:38 +0000 |
parents | 77264e0157ad |
children | b941147f2b2e |
comparison
equal
deleted
inserted
replaced
2910:dc01b26f8de8 | 2911:32b444fa2ca4 |
---|---|
559 | 559 |
560 elts = codes->elts; | 560 elts = codes->elts; |
561 | 561 |
562 new = ngx_array_push_n(codes, size); | 562 new = ngx_array_push_n(codes, size); |
563 if (new == NULL) { | 563 if (new == NULL) { |
564 return NGX_CONF_ERROR; | 564 return NULL; |
565 } | 565 } |
566 | 566 |
567 if (code) { | 567 if (code) { |
568 if (elts != codes->elts) { | 568 if (elts != codes->elts) { |
569 p = code; | 569 p = code; |