summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoichi Nakayama <yoichi.nakayama@gmail.com>2017-10-22 10:57:36 +0900
committerNico Williams <nico@cryptonector.com>2020-01-10 12:01:08 -0600
commit503fae5dc957f627a337116634a28cf9e1c66b2a (patch)
tree90cfb361283d954eb5d61ee7154f07c1766ead77
parent087100183c2aa85dc8cc2e0e6e7ab0dbdf9957c4 (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.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 1f2aac11..9af5471d 100644
--- a/src/util.c
+++ b/src/util.c
@@ -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);