From: Carl Worth Date: Wed, 21 Jul 2010 20:26:26 +0000 (-0700) Subject: Add missing initialization of inOutFlags pointer. X-Git-Tag: 062012170305~11286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19e3771cff8e68fab88f06681d381ba3dad6c3ae;p=profile%2Fivi%2Fmesa.git 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). --- diff --git a/src/mesa/slang/slang_link.c b/src/mesa/slang/slang_link.c index 955ee79..00c2c13 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)