mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 19:58:09 +02:00
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:
parent
9d1a61efbe
commit
19e3771cff
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue