Mesa (master): llvmpipe: Initialize state variable in debug_bin function.

Vinson Lee vlee at kemper.freedesktop.org
Tue Oct 19 17:03:48 UTC 2010


Module: Mesa
Branch: master
Commit: 22725eb3e87921632a24579d63bb20c35a122afa
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=22725eb3e87921632a24579d63bb20c35a122afa

Author: Vinson Lee <vlee at vmware.com>
Date:   Tue Oct 19 10:02:28 2010 -0700

llvmpipe: Initialize state variable in debug_bin function.

---

 src/gallium/drivers/llvmpipe/lp_rast_debug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast_debug.c b/src/gallium/drivers/llvmpipe/lp_rast_debug.c
index e2783aa..5c9dc50 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_debug.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_debug.c
@@ -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;
 




More information about the mesa-commit mailing list