diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-06-21 22:35:41 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-06-21 22:35:41 +0300 |
commit | 58e24662daf9670aa906b71719a071ef9d960f5e (patch) | |
tree | c63665ed54c5210404a5f473032ba59c184071b4 /src/nxt_conf_json.c | |
parent | 5e73d939999a85a34000bd662d29284cb4ca7f01 (diff) | |
download | unit-58e24662daf9670aa906b71719a071ef9d960f5e.tar.gz unit-58e24662daf9670aa906b71719a071ef9d960f5e.tar.bz2 |
Fixed building by GCC 4.8 and older.
Diffstat (limited to 'src/nxt_conf_json.c')
-rw-r--r-- | src/nxt_conf_json.c | 6 |
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) |