From 503fae5dc957f627a337116634a28cf9e1c66b2a Mon Sep 17 00:00:00 2001 From: Yoichi Nakayama Date: Sun, 22 Oct 2017 10:57:36 +0900 Subject: [PATCH] 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 --- src/util.c | 2 -- 1 file changed, 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);