Commit 0d905bec authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Derk-Jan Hartman

Fix NULL dereference (CID#181)

(cherry picked from commit 544eea4e)
parent 8dc2c568
...@@ -1097,7 +1097,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option, ...@@ -1097,7 +1097,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
if( !trusted ) if( !trusted )
{ {
module_config_t *p_config = config_FindConfig( p_obj, psz_name ); module_config_t *p_config = config_FindConfig( p_obj, psz_name );
if( !p_config->b_safe ) if( !p_config || !p_config->b_safe )
{ {
msg_Err( p_obj, "unsafe option \"%s\" has been ignored for " msg_Err( p_obj, "unsafe option \"%s\" has been ignored for "
"security reasons", psz_name ); "security reasons", 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