From 19e3771cff8e68fab88f06681d381ba3dad6c3ae Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Wed, 21 Jul 2010 13:26:26 -0700 Subject: Add missing initialization of inOutFlags pointer. This quiets a compiler warning, (and ensures a segmentation fault rather than memory corruption if this variable is written through before being initialized elsewhere). --- src/mesa/slang/slang_link.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mesa/slang') diff --git a/src/mesa/slang/slang_link.c b/src/mesa/slang/slang_link.c index 955ee79ed8..00c2c13cc6 100644 --- a/src/mesa/slang/slang_link.c +++ b/src/mesa/slang/slang_link.c @@ -222,7 +222,7 @@ link_varying_vars(GLcontext *ctx, struct gl_shader_program *shProg, struct gl_program *prog) { GLuint *map, i, firstSrcVarying, firstDstVarying, newSrcFile, newDstFile; - GLbitfield *inOutFlags; + GLbitfield *inOutFlags = NULL; map = (GLuint *) malloc(prog->Varying->NumParameters * sizeof(GLuint)); if (!map) -- cgit v1.2.3