removesilence: Fix 'argument to 'sizeof' in 'memset' call is the same expression as the destination' compiler warning

This commit is contained in:
Sebastian Dröge 2012-03-06 14:47:17 +01:00
parent b292b19c59
commit e34a70902c

View file

@ -74,7 +74,7 @@ vad_new (guint64 hysteresis)
void
vad_reset (VADFilter * vad)
{
memset (vad, 0, sizeof (vad));
memset (vad, 0, sizeof (*vad));
vad->cqueue.base.s = vad->vad_buffer;
vad->cqueue.tail.a = vad->cqueue.head.a = 0;
vad->cqueue.size = VAD_BUFFER_SIZE;