From: Vinson Lee Date: Sun, 7 Mar 2010 04:30:28 +0000 (-0800) Subject: gallivm: Initialize variables for default cases. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=661b416e07004655af3f372114119e4f8166496e;p=mesa.git gallivm: Initialize variables for default cases. Fixes use of uninitialized variables in non-debug builds. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c index bc2f307c33b..9058f76c1df 100644 --- 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;