From 4f49e893c1858f5da250bfc5b1c7c19cac95acc2 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 7 Jul 2021 12:26:23 +1000 Subject: [PATCH] test: init the pod test buffer with a fixed value Works around the valgrind complaints when we call spa_debug_mem() on the buffer with various sizes. --- test/test-spa-pod.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test-spa-pod.c b/test/test-spa-pod.c index efd69ac5e..298082343 100644 --- a/test/test-spa-pod.c +++ b/test/test-spa-pod.c @@ -701,6 +701,8 @@ PWTEST(pod_empty) struct spa_pod_frame f; uint32_t n_vals, ch; + memset(buffer, 0xab, sizeof(buffer)); + /* create empty arrays */ spa_pod_builder_init(&b, buffer, sizeof(buffer)); spa_assert(spa_pod_builder_push_array(&b, &f) == 0);