Commit c56d27fd authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

misc/variables.c: Make sure we don't use an unitialized var. (Fix a free to a non-malloced ptr).

parent 1894d87b
...@@ -1043,6 +1043,7 @@ void __var_OptionParse( vlc_object_t *p_obj, const char *psz_option ) ...@@ -1043,6 +1043,7 @@ void __var_OptionParse( vlc_object_t *p_obj, const char *psz_option )
int i_name_len, i_type; int i_name_len, i_type;
vlc_bool_t b_isno = VLC_FALSE; vlc_bool_t b_isno = VLC_FALSE;
vlc_value_t val; vlc_value_t val;
val.psz_string = NULL;
if( psz_value ) i_name_len = psz_value - psz_option; if( psz_value ) i_name_len = psz_value - psz_option;
else i_name_len = strlen( psz_option ); else i_name_len = strlen( psz_option );
......
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