Welcome! Log In Create A New Profile

Advanced

[njs] Fixed typo introduced in c7d2a7846b0b.

Vadim Zhestikov via nginx-devel
August 31, 2023 11:28AM
details: https://hg.nginx.org/njs/rev/58d40fc80c52
branches:
changeset: 2189:58d40fc80c52
user: Vadim Zhestikov <v.zhestikov@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
Subject Author Views Posted

[njs] Fixed typo introduced in c7d2a7846b0b.

Vadim Zhestikov via nginx-devel 437 August 31, 2023 11:28AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 98
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready