[vlc-devel] [vlc-commits] commit: stats: fix initialization on 32bits builds ( Rafaël Carré )

Laurent Aimar fenrir at elivagar.org
Tue Nov 2 10:00:13 CET 2010


yn Tue, Nov 02, 2010 at 07:16:03AM +0100, git at videolan.org wrote:
> vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Tue Nov  2 07:15:00 2010 +0100| [03c9cf61730535306dfb6d6b6b8ec473c8c7adb0] | committer: Rafaël Carré 
> 
> stats: fix initialization on 32bits builds
> 
> using psz_string to initialize will leave the top 32bits uninitialized
> -            p_new->value.psz_string = NULL;
> +            p_new->value.i_int = 0;
 Wouldn't memset(&p_new->value, 0, sizeof(p_new->value)) be safer then?

-- 
fenrir



More information about the vlc-devel mailing list