From d5f4872ba627b3e19d1f107f2febe9b669be033f Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Wed, 15 Oct 2025 09:58:03 +0200 Subject: [PATCH] TESTS: quic: useless param for b_quic_dec_int() The third parameter passed to b_quic_dec_int() is unitialized. This is not a bug. But this disturbs coverity for an unknown reason as revealed by GH issue #3154. This patch takes the opportunity to use NULL as passed value to avoid using such an uneeded third parameter. Should be backported to 3.2 where this unit test was introduced. --- src/quic_enc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/quic_enc.c b/src/quic_enc.c index 3dd7bd60d..1f2d55ab9 100644 --- a/src/quic_enc.c +++ b/src/quic_enc.c @@ -9,7 +9,6 @@ int quic_enc_unittest(int argc, char **argv) uint64_t val = 0; struct buffer b; char area[12]; - size_t len; int ret = 1; @@ -20,7 +19,7 @@ int quic_enc_unittest(int argc, char **argv) BUG_ON(b_data(&b) != b_contig_data(&b, b_head_ofs(&b))); /* test that b_quic_dec_int() can decode a wrapping value */ - b_quic_dec_int(&val, &b, &len); + b_quic_dec_int(&val, &b, NULL); if (val != init) goto out;