diff options
author | wm4 <wm4@nowhere> | 2012-11-01 01:12:28 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-11-01 02:12:18 +0100 |
commit | e57802a39f0aa2027a13dead6eca192701b85b80 (patch) | |
tree | 912af861b8520e308f5301d5c1619caf0d3eb1ac | |
parent | fc656c6bccff47c51f875605ebaf789cb684a26f (diff) | |
download | mpv-e57802a39f0aa2027a13dead6eca192701b85b80.tar.bz2 mpv-e57802a39f0aa2027a13dead6eca192701b85b80.tar.xz |
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.
-rw-r--r-- | libvo/gl_common.c | 4 |
1 files 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; |