]> git.sesse.net Git - vlc/commitdiff
assert if p_current is NULL, it should be valid
authorJean-Paul Saman <jpsaman@videolan.org>
Sat, 10 Mar 2007 23:11:00 +0000 (23:11 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Sat, 10 Mar 2007 23:11:00 +0000 (23:11 +0000)
modules/misc/playlist/m3u.c

index 8f9e509853784964675d9228b095474184bfff2e..2eb4e34b355401b17c1e78d39c7c2f43134be6a0 100644 (file)
@@ -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;
 }
-