[vlc-commits] addons: fix deference before null check (cid #1231840)

Francois Cartegnie git at videolan.org
Mon Aug 18 15:18:47 CEST 2014


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 18 21:35:14 2014 +0900| [98c7fee169bf5da3f7da7d6b465a98236d7ac53f] | committer: Francois Cartegnie

addons: fix deference before null check (cid #1231840)

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

 src/misc/addons.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/addons.c b/src/misc/addons.c
index 5c2ed3d..a625a5c 100644
--- a/src/misc/addons.c
+++ b/src/misc/addons.c
@@ -340,11 +340,11 @@ static void *FinderThread( void *p_data )
 
         addons_finder_t *p_finder =
                 vlc_custom_create( p_manager->p_priv->p_parent, sizeof( *p_finder ), "entries finder" );
-        p_finder->i_flags |= OBJECT_FLAGS_NOINTERACT;
 
         i_cancel = vlc_savecancel();
         if( p_finder != NULL )
         {
+            p_finder->i_flags |= OBJECT_FLAGS_NOINTERACT;
             module_t *p_module;
             ARRAY_INIT( p_finder->entries );
             vlc_mutex_lock( &p_manager->p_priv->finder.lock );



More information about the vlc-commits mailing list