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.
This commit is contained in:
Peter Hutterer 2021-07-07 12:26:23 +10:00 committed by Wim Taymans
parent 5ebfbccd16
commit 4f49e893c1

View file

@ -701,6 +701,8 @@ PWTEST(pod_empty)
struct spa_pod_frame f; struct spa_pod_frame f;
uint32_t n_vals, ch; uint32_t n_vals, ch;
memset(buffer, 0xab, sizeof(buffer));
/* create empty arrays */ /* create empty arrays */
spa_pod_builder_init(&b, buffer, sizeof(buffer)); spa_pod_builder_init(&b, buffer, sizeof(buffer));
spa_assert(spa_pod_builder_push_array(&b, &f) == 0); spa_assert(spa_pod_builder_push_array(&b, &f) == 0);