From: Carl Worth Date: Wed, 21 Jul 2010 20:26:26 +0000 (-0700) Subject: Add missing initialization of inOutFlags pointer. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19e3771cff8e68fab88f06681d381ba3dad6c3ae;p=mesa.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 955ee79ed86..00c2c13cc67 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)