pluginloader: Fix valgrind warnings by zeroing padding bytes.
authorJan Schmidt <thaytan@noraisin.net>
Thu, 8 Oct 2009 22:10:40 +0000 (23:10 +0100)
committerJan Schmidt <thaytan@noraisin.net>
Thu, 8 Oct 2009 22:10:40 +0000 (23:10 +0100)
gst/gstpluginloader.c

index 842ea01..60dfe88 100644 (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;