From 434bb149954fb67490261e810473a0a8d677b8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 29 Jun 2014 19:16:05 +0200 Subject: [PATCH] sparsefile: Initialize memory in unit test to make valgrind happy We were writing unitialized stack memory to the file. --- tests/check/libs/sparsefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/check/libs/sparsefile.c b/tests/check/libs/sparsefile.c index 6d291b44bf..fd5c81ea4e 100644 --- a/tests/check/libs/sparsefile.c +++ b/tests/check/libs/sparsefile.c @@ -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);