Commit 434bb149 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

sparsefile: Initialize memory in unit test to make valgrind happy

We were writing unitialized stack memory to the file.
parent 417fac01
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment