Commit 1d1d48dc authored by Jean-Paul Saman's avatar Jean-Paul Saman

assert if p_current is NULL, it should be valid

parent 67da4884
...@@ -51,8 +51,7 @@ static void DoChildren( playlist_t *p_playlist, playlist_export_t *p_export, ...@@ -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++) for( i = 0; i< p_root->i_children ; i++)
{ {
playlist_item_t *p_current = p_root->pp_children[i]; playlist_item_t *p_current = p_root->pp_children[i];
if( !p_current ) assert( p_current );
continue;
if( p_current->i_flags & PLAYLIST_SAVE_FLAG ) if( p_current->i_flags & PLAYLIST_SAVE_FLAG )
continue; continue;
...@@ -119,4 +118,3 @@ int Export_M3U( vlc_object_t *p_this ) ...@@ -119,4 +118,3 @@ int Export_M3U( vlc_object_t *p_this )
DoChildren( p_playlist, p_export, p_export->p_root ); DoChildren( p_playlist, p_export, p_export->p_root );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
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