vlc | branch: master | Steve Lhomme <[email protected]> | Thu Sep 10 13:39:19 2015 +0200| [0b3d23932976af32659c1170b1efdc6d0e66acb4] | committer: Francois Cartegnie
text_style: fix text_segment_Copy() when there's no next segment Signed-off-by: Francois Cartegnie <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0b3d23932976af32659c1170b1efdc6d0e66acb4 --- src/misc/text_style.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/text_style.c b/src/misc/text_style.c index eddddfe..a52273d 100644 --- a/src/misc/text_style.c +++ b/src/misc/text_style.c @@ -206,7 +206,7 @@ text_segment_t *text_segment_Copy( text_segment_t *p_src ) { text_segment_t *p_dst = NULL, *p_dst0 = NULL; - while( p_src && p_src->p_next ) { + while( p_src ) { text_segment_t *p_next = text_segment_New( p_src->psz_text ); if( p_next ) p_next->style = text_style_Duplicate( p_src->style ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
