[vlc-commits] text_style: fix text_segment_Copy() when there's no next segment
Steve Lhomme
git at videolan.org
Thu Sep 10 14:03:49 CEST 2015
vlc | branch: master | Steve Lhomme <robux4 at gmail.com> | 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 <fcvlcdev at free.fr>
> 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 );
More information about the vlc-commits
mailing list