Commit f0425530 authored by Rémi Duraffort's avatar Rémi Duraffort

No need to memset val to 0 because the variable is initialized just after (the

only case without initialization is for a void variable in which case the val
variable isn't used)
parent 9b5404a6
...@@ -230,7 +230,6 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type ) ...@@ -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->psz_text = NULL;
p_var->i_type = i_type & ~VLC_VAR_DOINHERIT; p_var->i_type = i_type & ~VLC_VAR_DOINHERIT;
memset( &p_var->val, 0, sizeof(vlc_value_t) );
p_var->i_usage = 1; p_var->i_usage = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment