From 737cfc40ded01dc3e5c589af0a171da04226518c Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Thu, 28 May 2020 18:18:58 +1000 Subject: [PATCH] avtp: Initialise strack structures to 0 in tests Avoid valgrind warnings about accessing uninitialised memory in the tests by initialisting structures to 0 Part-of: --- tests/check/elements/avtpcrfutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/check/elements/avtpcrfutil.c b/tests/check/elements/avtpcrfutil.c index efecc8fd25..d2df4c4174 100644 --- a/tests/check/elements/avtpcrfutil.c +++ b/tests/check/elements/avtpcrfutil.c @@ -30,8 +30,8 @@ GST_START_TEST (test_buffer_tstamp_valid) { - struct avtp_stream_pdu pdu; - GstMapInfo info; + struct avtp_stream_pdu pdu = { 0, }; + GstMapInfo info = { 0, }; gboolean result; info.data = (guint8 *) & pdu;