Commit c2e56e6b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

item: fix undefined zero-size array

parent 2497622d
......@@ -772,6 +772,8 @@ void input_item_SetEpgOffline( input_item_t *p_item )
#ifdef EPG_DEBUG
vlc_mutex_lock( &p_item->lock );
const int i_epg_info = p_item->i_epg;
if( i_epg_info > 0 )
{
char *ppsz_epg_info[i_epg_info];
for( int i = 0; i < p_item->i_epg; i++ )
{
......@@ -788,6 +790,9 @@ void input_item_SetEpgOffline( input_item_t *p_item )
input_item_DelInfo( p_item, ppsz_epg_info[i], NULL );
free( ppsz_epg_info[i] );
}
}
else
vlc_mutex_unlock( &p_item->lock );
#endif
vlc_event_t event = { .type = vlc_InputItemInfoChanged, };
......
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