diff options
author | Yoichi Nakayama <yoichi.nakayama@gmail.com> | 2017-10-22 10:57:36 +0900 |
---|---|---|
committer | Nico Williams <nico@cryptonector.com> | 2020-01-10 12:01:08 -0600 |
commit | 503fae5dc957f627a337116634a28cf9e1c66b2a (patch) | |
tree | 90cfb361283d954eb5d61ee7154f07c1766ead77 | |
parent | 087100183c2aa85dc8cc2e0e6e7ab0dbdf9957c4 (diff) |
remove unused conditional branch
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
-rw-r--r-- | src/util.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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); |