]> git.sesse.net Git - vlc/commitdiff
Fix wrong size given to memset (found by coccinelle static analyzer).
authorRémi Duraffort <ivoire@videolan.org>
Mon, 8 Feb 2010 21:10:00 +0000 (22:10 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Mon, 8 Feb 2010 21:25:38 +0000 (22:25 +0100)
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 )
         {