summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2010-07-21 13:26:26 -0700
committerCarl Worth <cworth@cworth.org>2010-07-21 13:26:26 -0700
commit19e3771cff8e68fab88f06681d381ba3dad6c3ae (patch)
tree046c89e437a8e98247eab5b34fa259589164687a
parent9d1a61efbecfb0093887ebe14b4aff4e7f6aeb85 (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).
-rw-r--r--src/mesa/slang/slang_link.c2
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)