From: Alexander Borisov Date: Thu, 18 Jul 2019 13:18:19 +0000 (+0300) Subject: Fixed typo in njs_parser_string_create() introduced in f1a70d67646d. X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=8e2ae68ce6fe0d6336aa9dd3d44fcf969cc163e1;p=njs.git Fixed typo in njs_parser_string_create() introduced in f1a70d67646d. --- diff --git a/njs/njs_parser_terminal.c b/njs/njs_parser_terminal.c index 85510fef..b25cdfc8 100644 --- a/njs/njs_parser_terminal.c +++ b/njs/njs_parser_terminal.c @@ -931,7 +931,7 @@ njs_parser_string_create(njs_vm_t *vm, njs_value_t *value) 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); }