vlc/vlc-2.2 | branch: master | Francois Cartegnie <[email protected]> | Mon Aug 
18 21:35:14 2014 +0900| [f1ebbd36806d43bddcdb5cdba8cd6be53ed93da5] | committer: 
Jean-Baptiste Kempf

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

(cherry picked from commit 98c7fee169bf5da3f7da7d6b465a98236d7ac53f)
Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 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 );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to