From: RĂ©mi Duraffort Date: Mon, 8 Feb 2010 21:10:00 +0000 (+0100) Subject: Fix wrong size given to memset (found by coccinelle static analyzer). X-Git-Tag: 1.1.0-ff~267 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=97cbb4793fa7352ab92fc1fa85b5afebc7cb1ea5;p=vlc Fix wrong size given to memset (found by coccinelle static analyzer). --- diff --git a/modules/audio_output/file.c b/modules/audio_output/file.c index d2641ecde7..3bee0ebd71 100644 --- a/modules/audio_output/file.c +++ b/modules/audio_output/file.c @@ -221,7 +221,7 @@ static int Open( vlc_object_t * p_this ) /* Write wave header */ WAVEHEADER *wh = &p_aout->output.p_sys->waveh; - memset( wh, 0, sizeof(wh) ); + memset( wh, 0, sizeof(*wh) ); switch( p_aout->output.output.i_format ) {