From 242dfdf9e87d8d5510f359bf67d2f3bc033ad8f4 Mon Sep 17 00:00:00 2001 From: Vadim Zhestikov Date: Thu, 31 Aug 2023 08:24:17 -0700 Subject: [PATCH] Fixed typo introduced in c7d2a7846b0b. Found by Coverity (CID 1542439). --- src/njs_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/njs_object.c b/src/njs_object.c index 683cabde..51f28739 100644 --- a/src/njs_object.c +++ b/src/njs_object.c @@ -1175,7 +1175,7 @@ njs_object_own_enumerate_object(njs_vm_t *vm, const njs_object_t *object, case NJS_ENUM_VALUES: case NJS_ENUM_BOTH: items_sorted = njs_array_alloc(vm, 1, 0, NJS_ARRAY_SPARE); - if (njs_slow_path(items == NULL)) { + if (njs_slow_path(items_sorted == NULL)) { return NJS_ERROR; } -- 2.47.3