[nginx] Fixed spelling of logical AND operator, no functional changes.

Sergey Kandaurov pluknet at nginx.com
Wed Dec 7 10:55:53 UTC 2016


details:   http://hg.nginx.org/nginx/rev/4395758d08e6
branches:  
changeset: 6819:4395758d08e6
user:      Sergey Kandaurov <pluknet at nginx.com>
date:      Wed Dec 07 13:54:30 2016 +0300
description:
Fixed spelling of logical AND operator, no functional changes.

Found by PVS-Studio.

diffstat:

 src/core/ngx_output_chain.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 2b2239a1e0d4 -r 4395758d08e6 src/core/ngx_output_chain.c
--- a/src/core/ngx_output_chain.c	Tue Nov 22 13:40:08 2016 +0800
+++ b/src/core/ngx_output_chain.c	Wed Dec 07 13:54:30 2016 +0300
@@ -512,7 +512,7 @@ ngx_output_chain_copy_buf(ngx_output_cha
     size = ngx_buf_size(src);
     size = ngx_min(size, dst->end - dst->pos);
 
-    sendfile = ctx->sendfile & !ctx->directio;
+    sendfile = ctx->sendfile && !ctx->directio;
 
 #if (NGX_SENDFILE_LIMIT)
 


More information about the nginx-devel mailing list