projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b18fa9f
)
mga: Silence uninitialized variable warnings.
author
Vinson Lee
<vlee@vmware.com>
Tue, 15 Dec 2009 01:30:15 +0000
(17:30 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 15 Dec 2009 01:30:15 +0000
(17:30 -0800)
src/mesa/drivers/dri/mga/mgatris.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/mga/mgatris.c
b/src/mesa/drivers/dri/mga/mgatris.c
index b93a21c3acf40c0937f59dceb2e578b144c024ab..c1bcd4b853147ebc715921ed0a484eb69def25d5 100644
(file)
--- a/
src/mesa/drivers/dri/mga/mgatris.c
+++ b/
src/mesa/drivers/dri/mga/mgatris.c
@@
-397,7
+397,8
@@
do { \
#define LOCAL_VARS(n) \
mgaContextPtr mmesa = MGA_CONTEXT(ctx); \
- GLuint color[n], spec[n]; \
+ GLuint color[n] = { 0 }; \
+ GLuint spec[n] = { 0 }; \
(void) color; (void) spec;