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>
This commit is contained in:
Jan Schmidt 2020-05-28 18:18:58 +10:00 committed by GStreamer Merge Bot
parent 0e578b1096
commit 737cfc40de

View file

@ -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;