From: Alexander Borisov Date: Thu, 9 Jan 2020 12:21:08 +0000 (+0300) Subject: Fixed typo introduced in 61bf7a31e685. X-Git-Tag: 0.3.8~15 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=805b4799b6c80f0a259773e5b51d25ab197cb862;p=njs.git Fixed typo introduced in 61bf7a31e685. Found by Coverity (CIDs 1457370, 1457369). --- diff --git a/src/njs_promise.c b/src/njs_promise.c index 6c888893..240c8574 100644 --- a/src/njs_promise.c +++ b/src/njs_promise.c @@ -836,7 +836,7 @@ njs_promise_perform_then(njs_vm_t *vm, njs_value_t *value, 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; }