[vlc-devel] commit: Fix NULL dereference (CID#181) ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Oct 5 16:13:01 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sun Oct  5 17:12:41 2008 +0300| [544eea4ef7052b6c02d70dee9b3ba526455b6da0] | committer: Rémi Denis-Courmont 

Fix NULL dereference (CID#181)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=544eea4ef7052b6c02d70dee9b3ba526455b6da0
---

 src/misc/variables.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/variables.c b/src/misc/variables.c
index 4a6d8e9..5e4e7df 100644
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1073,7 +1073,7 @@ void var_OptionParse( vlc_object_t *p_obj, const char *psz_option,
     if( !trusted )
     {
         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 "
                             "security reasons", psz_name );




More information about the vlc-devel mailing list