summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_conf_json.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nxt_conf_json.c b/src/nxt_conf_json.c
index 2117b468..b6deade3 100644
--- a/src/nxt_conf_json.c
+++ b/src/nxt_conf_json.c
@@ -236,13 +236,7 @@ nxt_conf_json_object_get_member(nxt_conf_json_value_t *value, nxt_str_t *name,
for (n = 0; n < object->count; n++) {
member = &object->members[n];
- if (member->name.type == NXT_CONF_JSON_SHORT_STRING) {
- str.length = member->name.u.str[0];
- str.start = &member->name.u.str[1];
-
- } else {
- str = *member->name.u.string;
- }
+ nxt_conf_json_value_get_string(&member->name, &str);
if (nxt_strstr_eq(&str, name)) {