From 39f4cbfc98528ce1d28311f074c9a2fab0dea104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Tue, 24 Mar 2026 17:31:40 +0100 Subject: [PATCH] spa: audioconvert: test-fmt-ops: initialize `convert` Since c02cdcb5ce98 ("audioconvert: add avx2 optimized s32_to f32d") `conv_s32_to_f32d_avx2()` reads `convert::cpu_flags`, which was previously unitiailized, fix that by setting it to 0. --- spa/plugins/audioconvert/test-fmt-ops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spa/plugins/audioconvert/test-fmt-ops.c b/spa/plugins/audioconvert/test-fmt-ops.c index 17a26a351..d5ca414ef 100644 --- a/spa/plugins/audioconvert/test-fmt-ops.c +++ b/spa/plugins/audioconvert/test-fmt-ops.c @@ -45,9 +45,9 @@ static void run_test(const char *name, void *tp[N_CHANNELS]; int i, j; const uint8_t *in8 = in, *out8 = out; - struct convert conv; - - conv.n_channels = N_CHANNELS; + struct convert conv = { + .n_channels = N_CHANNELS, + }; for (j = 0; j < N_SAMPLES; j++) { memcpy(&samp_in[j * in_size], &in8[(j % n_samples) * in_size], in_size);