Skip to content

Commit

Permalink
remove unused conditional branch
Browse files Browse the repository at this point in the history
It has no effect after the change c4524da.

Bug reported by the clang static analyzer.

Description: Value stored to 'value' is never read
File: jq/src/util.c
Line: 439
  • Loading branch information
yoichi authored and nicowilliams committed Jan 10, 2020
1 parent 0871001 commit 503fae5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,6 @@ jv jq_util_input_next_input(jq_util_input_state *state) {
} else {
if (jv_parser_remaining(state->parser) == 0) {
is_last = jq_util_input_read_more(state);
if (is_last && state->buf_valid_len == 0)
value = jv_invalid();
jv_parser_set_buf(state->parser, state->buf, state->buf_valid_len, !is_last);
}
value = jv_parser_next(state->parser);
Expand Down

0 comments on commit 503fae5

Please sign in to comment.