Welcome! Log In Create A New Profile

Advanced

[njs] Removed dead store assignment after ccfa84cea2b3.

Dmitry Volyntsev
February 05, 2020 10:00AM
details: https://hg.nginx.org/njs/rev/53cad4cfc9cb
branches:
changeset: 1317:53cad4cfc9cb
user: Dmitry Volyntsev <xeioex@nginx.com>
date: Wed Feb 05 15:26:18 2020 +0300
description:
Removed dead store assignment after ccfa84cea2b3.

Found by Clang static analyzer.

diffstat:

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

diffs (12 lines):

diff -r ccfa84cea2b3 -r 53cad4cfc9cb src/njs_value.c
--- a/src/njs_value.c Tue Feb 04 20:35:02 2020 +0300
+++ b/src/njs_value.c Wed Feb 05 15:26:18 2020 +0300
@@ -710,8 +710,6 @@ njs_object_property_query(njs_vm_t *vm,
ret = njs_lvlhsh_find(&proto->shared_hash, &pq->lhq);

if (ret == NJS_OK) {
- prop = pq->lhq.value;
-
return njs_prop_private_copy(vm, pq);
}
}
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Removed dead store assignment after ccfa84cea2b3.

Dmitry Volyntsev 96 February 05, 2020 10:00AM



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

Online Users

Guests: 92
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