mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
sparsefile: Initialize memory in unit test to make valgrind happy
We were writing unitialized stack memory to the file.
This commit is contained in:
parent
417fac010b
commit
434bb14995
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue