]> git.kaiwu.me - njs.git/commitdiff
Fixed typo introduced in 61bf7a31e685.
authorAlexander Borisov <alexander.borisov@nginx.com>
Thu, 9 Jan 2020 12:21:08 +0000 (15:21 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Thu, 9 Jan 2020 12:21:08 +0000 (15:21 +0300)
Found by Coverity (CIDs 14573701457369).

src/njs_promise.c

index 6c88889354865bbe936d525e3573535654d080e6..240c8574524aae5a56f560a8b46c4e960c030a4b 100644 (file)
@@ -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;
     }