diff options
author | Carl Worth <[email protected]> | 2010-07-21 13:26:26 -0700 |
---|---|---|
committer | Carl Worth <[email protected]> | 2010-07-21 13:26:26 -0700 |
commit | 19e3771cff8e68fab88f06681d381ba3dad6c3ae (patch) | |
tree | 046c89e437a8e98247eab5b34fa259589164687a /src/mesa/slang | |
parent | 9d1a61efbecfb0093887ebe14b4aff4e7f6aeb85 (diff) |
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).
Diffstat (limited to 'src/mesa/slang')
-rw-r--r-- | src/mesa/slang/slang_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |