diff options
author | Colin Leroy-Mira <colin@colino.net> | 2024-03-18 19:42:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-18 19:42:22 +0100 |
commit | d69733154a2b411c4248a3f90e582115a8512276 (patch) | |
tree | da9cf04f468ab5c06fc8e20062ee9f07374c23d5 | |
parent | 10ea3c7d9f581212e7a80f31fb9a6ded8fd28c0f (diff) |
Fix valgrind warning on aarch64/glibc 2.31
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)
-rw-r--r-- | src/jq_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jq_test.c b/src/jq_test.c index 39456861..568889d0 100644 --- a/src/jq_test.c +++ b/src/jq_test.c @@ -74,7 +74,7 @@ static void test_err_cb(void *data, jv e) { } static void run_jq_tests(jv lib_dirs, int verbose, FILE *testdata, int skip, int take) { - char prog[4096]; + char prog[4096] = {0}; char buf[4096]; struct err_data err_msg; int tests = 0, passed = 0, invalid = 0; |