summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2020-05-28 18:18:58 +1000
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-05-28 10:58:02 +0000
commit737cfc40ded01dc3e5c589af0a171da04226518c (patch)
treecf7270339f5531af960d91e9dc1081d7ab0f7c78 /tests
parent0e578b1096e9ccca167e4cccd6c160a615223fb6 (diff)
downloadgstreamer-plugins-bad-737cfc40ded01dc3e5c589af0a171da04226518c.tar.gz
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1305>
Diffstat (limited to 'tests')
-rw-r--r--tests/check/elements/avtpcrfutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check/elements/avtpcrfutil.c b/tests/check/elements/avtpcrfutil.c
index efecc8fd2..d2df4c417 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;