[vlc-commits] codec: substx3g: clear var aliasing warning

Francois Cartegnie git at videolan.org
Tue Jan 9 14:59:26 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Jan  9 14:56:59 2018 +0100| [6e1c8dc19a3a243a30b97281712a7544a7ff7cb3] | committer: Francois Cartegnie

codec: substx3g: clear var aliasing warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6e1c8dc19a3a243a30b97281712a7544a7ff7cb3
---

 modules/codec/substx3g.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/codec/substx3g.c b/modules/codec/substx3g.c
index 261ccb8451..a263734ce2 100644
--- a/modules/codec/substx3g.c
+++ b/modules/codec/substx3g.c
@@ -147,9 +147,9 @@ static void SegmentDoSplit( tx3g_segment_t *p_segment, uint16_t i_start, uint16_
         p_segment_left->i_size = str8len( p_segment_left->s->psz_text );
     }
 
-    char* psz_text = str8indup( p_segment->s->psz_text, i_start, i_end - i_start + 1 );
-    p_segment_middle = tx3g_segment_New( psz_text );
-    free( psz_text );
+    char* psz_midtext = str8indup( p_segment->s->psz_text, i_start, i_end - i_start + 1 );
+    p_segment_middle = tx3g_segment_New( psz_midtext );
+    free( psz_midtext );
     if ( !p_segment_middle ) goto error;
     p_segment_middle->s->style = text_style_Duplicate( p_segment->s->style );
     p_segment_middle->i_size = str8len( p_segment_middle->s->psz_text );



More information about the vlc-commits mailing list