diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-09-04 09:50:58 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-09-04 09:50:58 +0000 |
commit | 2052077b930ad6ba9b2ebec571cafabff78987e2 (patch) | |
tree | b70935266cbad5fdb36f7c03502f85d51a55f9c5 /src/os/unix/ngx_freebsd_sendfile_chain.c | |
parent | 63494b4c798c983ce95a7db8dec4c4c86b55b81f (diff) | |
download | nginx-2052077b930ad6ba9b2ebec571cafabff78987e2.tar.gz nginx-2052077b930ad6ba9b2ebec571cafabff78987e2.zip |
small optimization
Diffstat (limited to 'src/os/unix/ngx_freebsd_sendfile_chain.c')
-rw-r--r-- | src/os/unix/ngx_freebsd_sendfile_chain.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c index 976b6d0b4..50d5923dd 100644 --- a/src/os/unix/ngx_freebsd_sendfile_chain.c +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c @@ -295,14 +295,13 @@ ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, err, "sendfile() sent only %O bytes", sent); - } /* * sendfile() in FreeBSD 3.x-4.x may return value >= 0 * on success, although only 0 is documented */ - if (rc >= 0 && sent == 0) { + } else if (rc >= 0 && sent == 0) { /* * if rc is OK and sent equal to zero, then someone |