]> git.kaiwu.me - nginx.git/commitdiff
Fixed spelling of logical AND operator, no functional changes.
authorSergey Kandaurov <pluknet@nginx.com>
Wed, 7 Dec 2016 10:54:30 +0000 (13:54 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Wed, 7 Dec 2016 10:54:30 +0000 (13:54 +0300)
Found by PVS-Studio.

src/core/ngx_output_chain.c

index f7845787b6af08b0317be3ae40132d908851640d..7f5dc787ed3416cc566261551751bc1e797ad77c 100644 (file)
@@ -512,7 +512,7 @@ ngx_output_chain_copy_buf(ngx_output_chain_ctx_t *ctx)
     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)