details: https://hg.nginx.org/njs/rev/58d40fc80c52 branches: changeset: 2189:58d40fc80c52 user: Vadim Zhestikov <v.zhesti...@f5.com> date: Thu Aug 31 08:24:17 2023 -0700 description: Fixed typo introduced in c7d2a7846b0b.
Found by Coverity (CID 1542439). diffstat: src/njs_object.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff -r 77bdb1e544da -r 58d40fc80c52 src/njs_object.c --- a/src/njs_object.c Wed Aug 30 20:59:11 2023 -0700 +++ b/src/njs_object.c Thu Aug 31 08:24:17 2023 -0700 @@ -1175,7 +1175,7 @@ njs_object_own_enumerate_object(njs_vm_t 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; } _______________________________________________ nginx-devel mailing list nginx-devel@nginx.org https://mailman.nginx.org/mailman/listinfo/nginx-devel