]> git.sesse.net Git - vlc/commitdiff
No need to memset val to 0 because the variable is initialized just after (the
authorRémi Duraffort <ivoire@videolan.org>
Fri, 24 Jul 2009 11:16:06 +0000 (13:16 +0200)
committerRémi Duraffort <ivoire@videolan.org>
Fri, 24 Jul 2009 11:40:51 +0000 (13:40 +0200)
only case without initialization is for a void variable in which case the val
variable isn't used)

src/misc/variables.c

index 5b9ef21bb60a3d3af9ff3eb3ef88b56703cba867..864089baf9658b0cc1b5d84cede9943c635fae52 100644 (file)
@@ -230,7 +230,6 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
     p_var->psz_text = NULL;
 
     p_var->i_type = i_type & ~VLC_VAR_DOINHERIT;
-    memset( &p_var->val, 0, sizeof(vlc_value_t) );
 
     p_var->i_usage = 1;