[njs] Generator: fixed typo introduced in efdc5f18195e (0.6.2).

Dmitry Volyntsev xeioex at nginx.com
Wed Dec 8 13:16:51 UTC 2021


details:   https://hg.nginx.org/njs/rev/f32bf14b74e1
branches:  
changeset: 1761:f32bf14b74e1
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Wed Dec 08 13:14:56 2021 +0000
description:
Generator: fixed typo introduced in efdc5f18195e (0.6.2).

diffstat:

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

diffs (12 lines):

diff -r 1fb13b1d66a1 -r f32bf14b74e1 src/njs_generator.c
--- a/src/njs_generator.c	Tue Dec 07 19:42:27 2021 +0000
+++ b/src/njs_generator.c	Wed Dec 08 13:14:56 2021 +0000
@@ -453,7 +453,7 @@ njs_generator_after(njs_vm_t *vm, njs_ge
 {
     njs_generator_stack_entry_t  *entry;
 
-    entry = njs_mp_alloc(vm->mem_pool, sizeof(njs_parser_stack_entry_t));
+    entry = njs_mp_alloc(vm->mem_pool, sizeof(njs_generator_stack_entry_t));
     if (njs_slow_path(entry == NULL)) {
         return NJS_ERROR;
     }


More information about the nginx-devel mailing list