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).
This commit is contained in:
Carl Worth 2010-07-21 13:26:26 -07:00
parent 9d1a61efbe
commit 19e3771cff

View file

@ -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)