[njs] Removed dead store assignment after ccfa84cea2b3.

Dmitry Volyntsev xeioex at nginx.com
Wed Feb 5 14:58:21 UTC 2020


details:   https://hg.nginx.org/njs/rev/53cad4cfc9cb
branches:  
changeset: 1317:53cad4cfc9cb
user:      Dmitry Volyntsev <xeioex at 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);
             }
         }


More information about the nginx-devel mailing list