Commit f1ebbd36 authored by Francois Cartegnie's avatar Francois Cartegnie Committed by Jean-Baptiste Kempf

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

(cherry picked from commit 98c7fee169bf5da3f7da7d6b465a98236d7ac53f)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 01b1853c
...@@ -340,11 +340,11 @@ static void *FinderThread( void *p_data ) ...@@ -340,11 +340,11 @@ static void *FinderThread( void *p_data )
addons_finder_t *p_finder = addons_finder_t *p_finder =
vlc_custom_create( p_manager->p_priv->p_parent, sizeof( *p_finder ), "entries 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(); i_cancel = vlc_savecancel();
if( p_finder != NULL ) if( p_finder != NULL )
{ {
p_finder->i_flags |= OBJECT_FLAGS_NOINTERACT;
module_t *p_module; module_t *p_module;
ARRAY_INIT( p_finder->entries ); ARRAY_INIT( p_finder->entries );
vlc_mutex_lock( &p_manager->p_priv->finder.lock ); vlc_mutex_lock( &p_manager->p_priv->finder.lock );
......
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