projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d1a61e
)
Add missing initialization of inOutFlags pointer.
author
Carl Worth
<cworth@cworth.org>
Wed, 21 Jul 2010 20:26:26 +0000
(13:26 -0700)
committer
Carl Worth
<cworth@cworth.org>
Wed, 21 Jul 2010 20:26:26 +0000
(13:26 -0700)
This quiets a compiler warning, (and ensures a segmentation fault rather
than memory corruption if this variable is written through before being
initialized elsewhere).
src/mesa/slang/slang_link.c
patch
|
blob
|
history
diff --git
a/src/mesa/slang/slang_link.c
b/src/mesa/slang/slang_link.c
index 955ee79ed869aa86671dca472c7ebe0dcf274651..00c2c13cc67420fe6731fcd18b325e8385a22970 100644
(file)
--- 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)