mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
pluginloader: Fix valgrind warnings by zeroing padding bytes.
This commit is contained in:
parent
5dbe63c07a
commit
e3ce7d3e35
1 changed files with 3 additions and 0 deletions
|
@ -525,6 +525,9 @@ put_chunk (GstPluginLoader * l, GstRegistryChunk * chunk, guint * pos)
|
|||
}
|
||||
|
||||
out = l->tx_buf + l->tx_buf_write;
|
||||
/* Clear the padding */
|
||||
if (padsize)
|
||||
memset (out, 0, padsize);
|
||||
memcpy (out + padsize, chunk->data, chunk->size);
|
||||
|
||||
l->tx_buf_write += len;
|
||||
|
|
Loading…
Reference in a new issue