summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_conf_json.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_conf_json.c b/src/nxt_conf_json.c
index 7e482eda..b62cb22d 100644
--- a/src/nxt_conf_json.c
+++ b/src/nxt_conf_json.c
@@ -446,6 +446,12 @@ nxt_conf_json_copy_object(nxt_conf_json_value_t *dst,
pass_op = NULL;
+ /*
+ * This initialization is needed only to
+ * suppress a warning on GCC 4.8 and older.
+ */
+ index = 0;
+
do {
if (pass_op == NULL) {
index = (op == NULL || op->action == NXT_CONF_JSON_OP_CREATE)