Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
luzpaz
gstreamer
Commits
434bb149
Commit
434bb149
authored
Jun 29, 2014
by
Sebastian Dröge
🍵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sparsefile: Initialize memory in unit test to make valgrind happy
We were writing unitialized stack memory to the file.
parent
417fac01
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/check/libs/sparsefile.c
tests/check/libs/sparsefile.c
+1
-1
No files found.
tests/check/libs/sparsefile.c
View file @
434bb149
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment