[njs] A surplus check has been removed.

Igor Sysoev igor at sysoev.ru
Mon Oct 31 13:10:18 UTC 2016


details:   http://hg.nginx.org/njs/rev/b0b46036d54e
branches:  
changeset: 231:b0b46036d54e
user:      Igor Sysoev <igor at sysoev.ru>
date:      Mon Oct 31 15:56:49 2016 +0300
description:
A surplus check has been removed.

Found by Coverity Scan.

diffstat:

 njs/njscript.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r f0ac27f59e58 -r b0b46036d54e njs/njscript.c
--- a/njs/njscript.c	Mon Oct 31 15:51:12 2016 +0300
+++ b/njs/njscript.c	Mon Oct 31 15:56:49 2016 +0300
@@ -346,7 +346,7 @@ njs_vm_clone(njs_vm_t *vm, nxt_mem_cache
 
 fail:
 
-    if (mcp == NULL && nmcp != NULL) {
+    if (mcp == NULL) {
         nxt_mem_cache_pool_destroy(nmcp);
     }
 



More information about the nginx-devel mailing list