projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba8f4c5
)
gallivm: Initialize variables for default cases.
author
Vinson Lee
<vlee@vmware.com>
Sun, 7 Mar 2010 04:30:28 +0000
(20:30 -0800)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 7 Mar 2010 04:30:28 +0000
(20:30 -0800)
Fixes use of uninitialized variables in non-debug builds.
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index bc2f307c33b7d2867aadbcf4dbc6c73d6abea182..9058f76c1df60fa392a2237f0f3cc6a5855114fc 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
@@
-538,6
+538,9
@@
lp_build_sample_wrap_linear(struct lp_build_sample_context *bld,
default:
assert(0);
+ coord0 = NULL;
+ coord1 = NULL;
+ weight = NULL;
}
*x0_out = coord0;
@@
-700,6
+703,7
@@
lp_build_sample_wrap_nearest(struct lp_build_sample_context *bld,
default:
assert(0);
+ icoord = NULL;
}
return icoord;