Fixed building by GCC 4.8 and older.

This commit is contained in:
Valentin Bartenev
2017-06-21 22:35:41 +03:00
parent 5e73d93999
commit 58e24662da

View File

@@ -446,6 +446,12 @@ nxt_conf_json_copy_object(nxt_conf_json_value_t *dst,
pass_op = NULL; pass_op = NULL;
/*
* This initialization is needed only to
* suppress a warning on GCC 4.8 and older.
*/
index = 0;
do { do {
if (pass_op == NULL) { if (pass_op == NULL) {
index = (op == NULL || op->action == NXT_CONF_JSON_OP_CREATE) index = (op == NULL || op->action == NXT_CONF_JSON_OP_CREATE)