diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-04-11 00:29:29 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-04-11 00:29:29 +0300 |
commit | 6af2d1cfc601c150bf67e646f4b5249b7c29a30e (patch) | |
tree | 77be87827548c8d612bce71318dae8a829d3fe2d /src/nxt_conf_json.c | |
parent | b01865c0233154a06b2e68c42d9eec7cb3a3c35f (diff) | |
download | unit-6af2d1cfc601c150bf67e646f4b5249b7c29a30e.tar.gz unit-6af2d1cfc601c150bf67e646f4b5249b7c29a30e.tar.bz2 |
JSON parser: fixed missing initialization of short string length.
Diffstat (limited to 'src/nxt_conf_json.c')
-rw-r--r-- | src/nxt_conf_json.c | 2 |
1 files changed, 2 insertions, 0 deletions
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]; } |