[njs] Fixed typo introduced in 61bf7a31e685.
Alexander Borisov
alexander.borisov at nginx.com
Thu Jan 9 12:21:41 UTC 2020
details: https://hg.nginx.org/njs/rev/5cd098c6c4de
branches:
changeset: 1294:5cd098c6c4de
user: Alexander Borisov <alexander.borisov at nginx.com>
date: Thu Jan 09 15:21:08 2020 +0300
description:
Fixed typo introduced in 61bf7a31e685.
Found by Coverity (CIDs 1457370, 1457369).
diffstat:
src/njs_promise.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 74d2b2074ec0 -r 5cd098c6c4de src/njs_promise.c
--- a/src/njs_promise.c Fri Dec 27 19:17:26 2019 +0300
+++ b/src/njs_promise.c Thu Jan 09 15:21:08 2020 +0300
@@ -836,7 +836,7 @@ njs_promise_perform_then(njs_vm_t *vm, n
rejected_reaction = njs_mp_alloc(vm->mem_pool,
sizeof(njs_promise_reaction_t));
- if (njs_slow_path(fulfilled_reaction == NULL)) {
+ if (njs_slow_path(rejected_reaction == NULL)) {
njs_memory_error(vm);
return NJS_ERROR;
}
More information about the nginx-devel
mailing list