[njs] Fixed typo introduced in a37e4df8f082.

Dmitry Volyntsev xeioex at nginx.com
Fri Sep 2 01:23:04 UTC 2022


details:   https://hg.nginx.org/njs/rev/506ba9a639b8
branches:  
changeset: 1946:506ba9a639b8
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu Sep 01 18:12:27 2022 -0700
description:
Fixed typo introduced in a37e4df8f082.

diffstat:

 src/njs_vmcode.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r a37e4df8f082 -r 506ba9a639b8 src/njs_vmcode.c
--- a/src/njs_vmcode.c	Thu Sep 01 17:49:06 2022 -0700
+++ b/src/njs_vmcode.c	Thu Sep 01 18:12:27 2022 -0700
@@ -742,7 +742,7 @@ next:
                 fcopy = (njs_vmcode_function_copy_t *) pc;
                 ret = njs_vmcode_function_copy(vm, fcopy->function,
                                                fcopy->retval);
-                if (njs_slow_path(ret != NJS_OK)) {
+                if (njs_slow_path(ret == NJS_ERROR)) {
                     goto error;
                 }
 



More information about the nginx-devel mailing list