sparsefile: Initialize memory in unit test to make valgrind happy

We were writing unitialized stack memory to the file.
This commit is contained in:
Sebastian Dröge 2014-06-29 19:16:05 +02:00
parent 417fac010b
commit 434bb14995

View file

@ -59,7 +59,7 @@ expect_write (GstSparseFile * file, gsize offset, gsize count, gsize result,
gsize avail)
{
GError *error = NULL;
gchar buffer[200];
gchar buffer[200] = { 0, };
gsize res, a;
res = gst_sparse_file_write (file, offset, buffer, count, &a, &error);