Commit ad5dda25 authored by Francois Cartegnie's avatar Francois Cartegnie

addons: fsstorage: move initializer

cid #1170824
parent d2a5c2d3
......@@ -520,7 +520,7 @@ static int WriteCatalog( addons_storage_t *p_storage,
{
addon_entry_t *p_entry;
char *psz_file;
char *psz_tempstring = NULL;
char *psz_tempstring;
char *psz_userdir = config_GetUserDir( VLC_DATA_DIR );
if ( !psz_userdir ) return VLC_ENOMEM;
......@@ -562,6 +562,8 @@ static int WriteCatalog( addons_storage_t *p_storage,
{
p_entry = pp_entries[i];
vlc_mutex_lock( &p_entry->lock );
psz_tempstring = NULL;
if ( ( p_entry->e_state != ADDON_INSTALLED ) ||
!( p_entry->e_flags & ADDON_MANAGEABLE ) )
{
......
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