summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--strings/json_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c
index 25e5e81e6f9..1743fce83d0 100644
--- a/strings/json_lib.c
+++ b/strings/json_lib.c
@@ -1447,7 +1447,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state)
/* Path already failed. */
continue;
if (state->paths[p_c].steps[state->cur_depth].type &
- (je->state == JST_OBJ_START) ? JSON_PATH_KEY : JSON_PATH_ARRAY)
+ ((je->state == JST_OBJ_START) ? JSON_PATH_KEY : JSON_PATH_ARRAY))
state->path_depths[p_c]++;
}
state->cur_depth++;