[vlc-commits] text_renderer: win32text: fix build

Francois Cartegnie git at videolan.org
Thu Aug 13 15:42:06 CEST 2015


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Aug 13 15:40:31 2015 +0200| [a8433c3211dd58e5a1460ba75171b20b2cb5565b] | committer: Francois Cartegnie

text_renderer: win32text: fix build

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

 modules/text_renderer/win32text.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/text_renderer/win32text.c b/modules/text_renderer/win32text.c
index d6157f4..ca214bc 100644
--- a/modules/text_renderer/win32text.c
+++ b/modules/text_renderer/win32text.c
@@ -328,7 +328,8 @@ static int RenderText( filter_t *p_filter, subpicture_region_t *p_region_out,
     if(i_len == 0)
         return VLC_EGENERIC;
 
-    char *psz = psz_render_string = malloc(i_len + 1);
+    char *psz;
+    char *psz_render_string = psz = malloc(i_len + 1);
     if(!psz_render_string)
         return VLC_EGENERIC;
     *psz = 0;



More information about the vlc-commits mailing list