From: Vinson Lee Date: Sat, 9 Jan 2010 06:10:52 +0000 (-0800) Subject: progs/glsl: Silence uninitialized variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=223c8482ca16d3ed31266ea8cc63b816aece6a81;p=mesa.git progs/glsl: Silence uninitialized variable warning. --- diff --git a/progs/glsl/convolutions.c b/progs/glsl/convolutions.c index 350e61bbdc5..fdfaf568a25 100644 --- a/progs/glsl/convolutions.c +++ b/progs/glsl/convolutions.c @@ -182,7 +182,7 @@ static void fillConvolution(GLint *k, static void setupConvolution() { GLint *kernel = (GLint*)malloc(sizeof(GLint) * 9); - GLfloat scale; + GLfloat scale = 0.0; GLfloat *vecKer = (GLfloat*)malloc(sizeof(GLfloat) * 9 * 4); GLuint loc; GLuint i;