From: Rafaël Carré Date: Wed, 3 Oct 2007 22:21:00 +0000 (+0000) Subject: playlist: fix a segfault X-Git-Tag: 0.9.0-test0~5226 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ea06273fe2aa7c09e7dda5329e152d9ae7745285;p=vlc playlist: fix a segfault --- diff --git a/src/playlist/tree.c b/src/playlist/tree.c index 3f9b426217..68b2228842 100644 --- a/src/playlist/tree.c +++ b/src/playlist/tree.c @@ -533,7 +533,7 @@ playlist_item_t *GetNextUncle( playlist_t *p_playlist, playlist_item_t *p_item, if( p_parent != NULL ) { p_grandparent = p_parent->p_parent; - while( 1 ) + while( p_grandparent ) { int i; for( i = 0 ; i< p_grandparent->i_children ; i++ )