]> git.kaiwu.me - nginx.git/commit
Core: removed meaningless check from ngx_palloc_block().
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 25 Jun 2014 23:34:19 +0000 (03:34 +0400)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 25 Jun 2014 23:34:19 +0000 (03:34 +0400)
commit9d4de05be4b7a27fecc24a80c4feee987e8b531c
treeb3bdb5ed2173fe40fa82c4e1d46702529da4b95b
parent25250a20d2827954d427222f1f4b1e26c8729d7f
Core: removed meaningless check from ngx_palloc_block().

The check became meaningless after refactoring in 2a92804f4109.
With the loop currently in place, "current" can't be NULL, hence
the check can be dropped.

Additionally, the local variable "current" was removed to
simplify code, and pool->current now used directly instead.

Found by Coverity (CID 714236).
src/core/ngx_palloc.c