Remove a bunch of unused variables, and useless assignments

Detected by clang-tidy.
This commit is contained in:
Emanuele Torre authored and Nico Williams committed 2023-09-27 21:50:44 -05:00
1 parent 2b709727a9
commit 623ace27e8
4 files changed
+3 -5

No files matched your search

+1 -1
View File
@@ -353,7 +353,7 @@ static int jq_util_input_read_more(jq_util_input_state *state) {
* terminating '\0'. This only works because we previously memset our
* buffer with something nonzero.
*/
for (p = state->buf, i = sizeof(state->buf) - 1; i > 0; i--) {
for (i = sizeof(state->buf) - 1; i > 0; i--) {
if (state->buf[i] == '\0')
break;
}