]> git.kaiwu.me - njs.git/commitdiff
Fixed clearing UTF-8 context for two-byte codepoints.
authorAlexander Borisov <alexander.borisov@nginx.com>
Wed, 22 Jul 2020 12:21:13 +0000 (15:21 +0300)
committerAlexander Borisov <alexander.borisov@nginx.com>
Wed, 22 Jul 2020 12:21:13 +0000 (15:21 +0300)
src/njs_utf8.h

index f9518cad785140f692580b6617e0b7479dd73b90..5c870d420866a1fd24a5a701d7d25eb095bd39b0 100644 (file)
@@ -103,6 +103,7 @@ njs_inline void
 njs_utf8_decode_init(njs_unicode_decode_t *ctx)
 {
     ctx->need = 0x00;
+    ctx->lower = 0x00;
 }