From 6af2d1cfc601c150bf67e646f4b5249b7c29a30e Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Tue, 11 Apr 2017 00:29:29 +0300 Subject: [PATCH] JSON parser: fixed missing initialization of short string length. --- src/nxt_conf_json.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nxt_conf_json.c b/src/nxt_conf_json.c index 01eab55a..cf0190f4 100644 --- a/src/nxt_conf_json.c +++ b/src/nxt_conf_json.c @@ -533,6 +533,8 @@ nxt_conf_json_parse_string(u_char *pos, u_char *end, } else { value->type = NXT_CONF_JSON_SHORT_STRING; + value->u.str[0] = size; + s = &value->u.str[1]; }