gallivm: Initialize variables for default cases.

Fixes use of uninitialized variables in non-debug builds.
This commit is contained in:
Vinson Lee 2010-03-06 20:30:28 -08:00
parent ba8f4c5d36
commit 661b416e07
1 changed files with 4 additions and 0 deletions

View File

@ -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;