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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user