[njs] Fixed typo in njs_parser_string_create() introduced in f1a70d67646d.

Alexander Borisov alexander.borisov at nginx.com
Thu Jul 18 13:18:48 UTC 2019


details:   https://hg.nginx.org/njs/rev/57cf608a29b5
branches:  
changeset: 1058:57cf608a29b5
user:      Alexander Borisov <alexander.borisov at nginx.com>
date:      Thu Jul 18 16:18:19 2019 +0300
description:
Fixed typo in njs_parser_string_create() introduced in f1a70d67646d.

diffstat:

 njs/njs_parser_terminal.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 0960f0568b94 -r 57cf608a29b5 njs/njs_parser_terminal.c
--- a/njs/njs_parser_terminal.c	Wed Jul 17 14:24:00 2019 +0300
+++ b/njs/njs_parser_terminal.c	Thu Jul 18 16:18:19 2019 +0300
@@ -931,7 +931,7 @@ njs_parser_string_create(njs_vm_t *vm, n
         dst = nxt_utf8_encode(dst, cp);
     }
 
-    if (size > NJS_STRING_MAP_STRIDE && size != length) {
+    if (length > NJS_STRING_MAP_STRIDE && size != length) {
         njs_string_offset_map_init(value->long_string.data->start, size);
     }
 


More information about the nginx-devel mailing list