]> git.sesse.net Git - vlc/commitdiff
Freetype: fix valgrind warning
authorTristan Matthews <le.businessman@gmail.com>
Tue, 21 Jan 2014 09:16:31 +0000 (04:16 -0500)
committerTristan Matthews <le.businessman@gmail.com>
Tue, 21 Jan 2014 09:16:31 +0000 (04:16 -0500)
Fixes "Conditional jump or move depends on uninitialised value(s)"
in RenderCommon (freetype.c:1705)

modules/text_renderer/freetype.c

index 9769258d9e1d934273fb1932a8c814af3dcfa1d0..34016213fadad41df3f0deb633f518f0b5914b82 100644 (file)
@@ -1882,6 +1882,7 @@ static int Create( vlc_object_t *p_this )
     p_sys->p_face           = 0;
     p_sys->p_library        = 0;
     p_sys->style.i_font_size      = 0;
+    p_sys->style.i_style_flags = 0;
 
     /*
      * The following variables should not be cached, as they might be changed on-the-fly: