Skip to content
Myr

Fix valgrind warning on aarch64/glibc 2.31

Before adoption: this commit came in with the history the project adopted, so no landing records it.

tests/mantest were failing on Raspberry Pi OS 11: ==10205== Conditional jump or move depends on uninitialised value(s) ==10205== at 0x48806F8: checkfail (jq_test.c:58) ==10205== by 0x48806F8: run_jq_tests (jq_test.c:99) ==10205== by 0x4880FCB: jq_testsuite (jq_test.c:39) ==10205== by 0x10B37F: main (main.c:576) ==10205== ==10205== Conditional jump or move depends on uninitialised value(s) ==10205== at 0x4880714: checkfail (jq_test.c:58) ==10205== by 0x4880714: run_jq_tests (jq_test.c:99) ==10205== by 0x4880FCB: jq_testsuite (jq_test.c:39) ==10205== by 0x10B37F: main (main.c:576)

authored by Colin Leroy-Mira · committed by GitHub · parent 10ea3c7 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:src/jq_test.c+1 added-1 removed
72 unmodified lines
73 jv_free(e);74}7576static void run_jq_tests(jv lib_dirs, int verbose, FILE *testdata, int skip, int take) {77 char prog[4096];77 char prog[4096] = {0};78 char buf[4096];79 struct err_data err_msg;80 int tests = 0, passed = 0, invalid = 0;81 unsigned int lineno = 0;
412 unmodified lines