[vlc-commits] Subpicture: remove NULL assignment after calloc

Jean-Baptiste Kempf git at videolan.org
Tue Jul 28 16:01:56 CEST 2015


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr  6 18:13:41 2015 +0200| [7f649acf5275749181c1c9336c1fb50a53de783a] | committer: Jean-Baptiste Kempf

Subpicture: remove NULL assignment after calloc

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 src/misc/subpicture.c |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/misc/subpicture.c b/src/misc/subpicture.c
index 300a7a0..3ae7722 100644
--- a/src/misc/subpicture.c
+++ b/src/misc/subpicture.c
@@ -220,11 +220,6 @@ subpicture_region_t *subpicture_region_New( const video_format_t *p_fmt )
             *p_region->fmt.p_palette = *p_fmt->p_palette;
     }
     p_region->i_alpha = 0xff;
-    p_region->p_next = NULL;
-    p_region->p_private = NULL;
-    p_region->psz_text = NULL;
-    p_region->p_style = NULL;
-    p_region->p_picture = NULL;
 
     if( p_fmt->i_chroma == VLC_CODEC_TEXT )
         return p_region;



More information about the vlc-commits mailing list