From e57802a39f0aa2027a13dead6eca192701b85b80 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 1 Nov 2012 01:12:28 +0100 Subject: [PATCH] gl_common: add dummy initialization The uninitialized values are passed through some functions, but will be eventually unused. Initialize them anyway to avoid potential undefined behavior and for clarity. --- libvo/gl_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvo/gl_common.c b/libvo/gl_common.c index 31d9e526e9..20c3d44af2 100644 --- a/libvo/gl_common.c +++ b/libvo/gl_common.c @@ -1567,8 +1567,8 @@ static void glSetupYUVFragprog(GL *gl, gl_conversion_params_t *params) char *yuv_prog = NULL; char **prog = &yuv_prog; int cur_texu = 3; - char lum_scale_texs[1]; - char chrom_scale_texs[1]; + char lum_scale_texs[1] = {0}; + char chrom_scale_texs[1] = {0}; char conv_texs[1]; char filt_texs[1] = {0}; GLint i;