pluginloader: Fix valgrind warnings by zeroing padding bytes.

This commit is contained in:
Jan Schmidt 2009-10-08 23:10:40 +01:00
parent 5dbe63c07a
commit e3ce7d3e35

View file

@ -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;