]> git.kaiwu.me - njs.git/commitdiff
Removed dead store assignment after ccfa84cea2b3.
authorDmitry Volyntsev <xeioex@nginx.com>
Wed, 5 Feb 2020 12:26:18 +0000 (15:26 +0300)
committerDmitry Volyntsev <xeioex@nginx.com>
Wed, 5 Feb 2020 12:26:18 +0000 (15:26 +0300)
Found by Clang static analyzer.

src/njs_value.c

index 926769ec7276c09245d31bb2f18a316a973b526d..2ee52d10a46ec5721ff91c48ae542b66126380d6 100644 (file)
@@ -710,8 +710,6 @@ njs_object_property_query(njs_vm_t *vm, njs_property_query_t *pq,
             ret = njs_lvlhsh_find(&proto->shared_hash, &pq->lhq);
 
             if (ret == NJS_OK) {
-                prop = pq->lhq.value;
-
                 return njs_prop_private_copy(vm, pq);
             }
         }