llvmpipe: Initialize state variable in debug_bin function.
authorVinson Lee <vlee@vmware.com>
Tue, 19 Oct 2010 17:02:28 +0000 (10:02 -0700)
committerVinson Lee <vlee@vmware.com>
Tue, 19 Oct 2010 17:02:28 +0000 (10:02 -0700)
src/gallium/drivers/llvmpipe/lp_rast_debug.c

index e2783aa56833910ddf313b5ee5fe8d20f5bf73ab..5c9dc50866b29cd588ae9bb8a1707e07141b2e16 100644 (file)
@@ -95,7 +95,7 @@ is_blend( const struct lp_rast_state *state,
 static void
 debug_bin( const struct cmd_bin *bin )
 {
-   const struct lp_rast_state *state;
+   const struct lp_rast_state *state = NULL;
    const struct cmd_block *head = bin->head;
    int i, j = 0;