From 58e24662daf9670aa906b71719a071ef9d960f5e Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Wed, 21 Jun 2017 22:35:41 +0300 Subject: [PATCH] Fixed building by GCC 4.8 and older. --- src/nxt_conf_json.c | 6 ++++++ 1 file changed, 6 insertions(+) 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)