Commit c7e36118 authored by Steve Lhomme's avatar Steve Lhomme

variables.c: void the buffer after the memmove to avoid reusing previous values

parent aaf44538
...@@ -193,6 +193,7 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type ) ...@@ -193,6 +193,7 @@ int __var_Create( vlc_object_t *p_this, const char *psz_name, int i_type )
p_this->i_vars++; p_this->i_vars++;
p_var = &p_this->p_vars[i_new]; p_var = &p_this->p_vars[i_new];
memset( p_var, 0, sizeof(*p_var) );
p_var->i_hash = HashString( psz_name ); p_var->i_hash = HashString( psz_name );
p_var->psz_name = strdup( psz_name ); p_var->psz_name = strdup( psz_name );
......
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