From: Vinson Lee Date: Tue, 13 Apr 2010 07:35:10 +0000 (-0700) Subject: r300g: Silence uninitialized variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8316da7cd20c9538b58b8927cc14f1639b881008;p=mesa.git r300g: Silence uninitialized variable warning. --- diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index f5ece395532..0cb102359df 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -1432,6 +1432,7 @@ static void r300_set_constant_buffer(struct pipe_context *pipe, break; default: assert(0); + cbuf = NULL; } if (buf == NULL || buf->width0 == 0 ||