diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-02-24 10:42:23 +0000 |
commit | 1f4220ee869152938d9140c471c37be628532344 (patch) | |
tree | bb17b08acf1f50770fec0846cd6202a593b93674 /src/core/ngx_cycle.c | |
parent | 9b4a1d00941db4b85fc2ffe7424b706b56f7133f (diff) | |
download | nginx-1f4220ee869152938d9140c471c37be628532344.tar.gz nginx-1f4220ee869152938d9140c471c37be628532344.zip |
small optimization: " == NGX_ERROR" > " != NGX_OK"
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r-- | src/core/ngx_cycle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c index 9ee7e65a0..f3dc8619b 100644 --- a/src/core/ngx_cycle.c +++ b/src/core/ngx_cycle.c @@ -136,7 +136,7 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) } if (ngx_list_init(&cycle->open_files, pool, n, sizeof(ngx_open_file_t)) - == NGX_ERROR) + != NGX_OK) { ngx_destroy_pool(pool); return NULL; @@ -155,7 +155,7 @@ ngx_init_cycle(ngx_cycle_t *old_cycle) } if (ngx_list_init(&cycle->shared_memory, pool, n, sizeof(ngx_shm_zone_t)) - == NGX_ERROR) + != NGX_OK) { ngx_destroy_pool(pool); return NULL; |