From: Vadim Zhestikov Date: Thu, 31 Aug 2023 15:24:17 +0000 (-0700) Subject: Fixed typo introduced in c7d2a7846b0b. X-Git-Tag: 0.8.1~11 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=242dfdf9e87d8d5510f359bf67d2f3bc033ad8f4;p=njs.git Fixed typo introduced in c7d2a7846b0b. Found by Coverity (CID 1542439). --- 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; }