diff options
author | Nicolas Williams <nico@cryptonector.com> | 2015-09-21 23:24:08 -0500 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-09-22 20:11:54 -0700 |
commit | c4524da3e092adcb4d0af5636ae2309d08418a9e (patch) | |
tree | 3825f57a04ff222d840a0a5ba17de0a1aec14a4c /src/util.c | |
parent | 58f082d74fa29ead024ff2d695eae874b9b67538 (diff) |
EOF after newline in string mishandled (fix #951)
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -435,10 +435,8 @@ 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) { + if (is_last && state->buf_valid_len == 0) value = jv_invalid(); - break; - } jv_parser_set_buf(state->parser, state->buf, state->buf_valid_len, !is_last); } value = jv_parser_next(state->parser); |