]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/file.c
Fix wrong size given to memset (found by coccinelle static analyzer).
[vlc] / modules / audio_output / file.c
index d2641ecde726d0155bcc6cd008f491e84b4ece9a..3bee0ebd7136c6f529b67396f9c880d391111d05 100644 (file)
@@ -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 )
         {