JSON parser: fixed missing initialization of short string length.

This commit is contained in:
Valentin Bartenev
2017-04-11 00:29:29 +03:00
parent b01865c023
commit 6af2d1cfc6

View File

@@ -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];
}