Welcome! Log In Create A New Profile

Advanced

[njs] A surplus check has been removed.

October 31, 2016 09:12AM
details: http://hg.nginx.org/njs/rev/b0b46036d54e
branches:
changeset: 231:b0b46036d54e
user: Igor Sysoev <igor@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);
}


_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] A surplus check has been removed.

Igor Sysoev 603 October 31, 2016 09:12AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready