Commit 0cbce05c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Forgot memset() to actually fix the problem... shame on me

parent 9ce580cf
...@@ -376,7 +376,8 @@ int config_AutoSaveConfigFile( vlc_object_t * ); ...@@ -376,7 +376,8 @@ int config_AutoSaveConfigFile( vlc_object_t * );
i_config++; \ i_config++; \
if(!(i_config%10)) p_config = (module_config_t* )realloc(p_config, \ if(!(i_config%10)) p_config = (module_config_t* )realloc(p_config, \
(i_config+11) * sizeof(module_config_t)); \ (i_config+11) * sizeof(module_config_t)); \
{ p_config[ i_config ].i_type = type; \ { memset ( p_config + i_config, 0, sizeof( *p_config ) ); \
p_config[ i_config ].i_type = type; \
p_config[ i_config ].psz_name = name; \ p_config[ i_config ].psz_name = name; \
p_config[ i_config ].psz_current = "SUPPRESSED"; } p_config[ i_config ].psz_current = "SUPPRESSED"; }
......
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