diff --git a/modules/misc/playlist/m3u.c b/modules/misc/playlist/m3u.c index 8f9e509853784964675d9228b095474184bfff2e..2eb4e34b355401b17c1e78d39c7c2f43134be6a0 100644 --- a/modules/misc/playlist/m3u.c +++ b/modules/misc/playlist/m3u.c @@ -51,8 +51,7 @@ static void DoChildren( playlist_t *p_playlist, playlist_export_t *p_export, for( i = 0; i< p_root->i_children ; i++) { playlist_item_t *p_current = p_root->pp_children[i]; - if( !p_current ) - continue; + assert( p_current ); if( p_current->i_flags & PLAYLIST_SAVE_FLAG ) continue; @@ -119,4 +118,3 @@ int Export_M3U( vlc_object_t *p_this ) DoChildren( p_playlist, p_export, p_export->p_root ); return VLC_SUCCESS; } -