Mesa (gallium-0.2): gallium: Initialize var before use.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Dec 30 19:25:13 UTC 2008


Module: Mesa
Branch: gallium-0.2
Commit: 369115e4c7a2985d880951fd8248deefa92025dd
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=369115e4c7a2985d880951fd8248deefa92025dd

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Dec 30 19:21:30 2008 +0000

gallium: Initialize var before use.

---

 src/gallium/auxiliary/util/u_gen_mipmap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/util/u_gen_mipmap.c b/src/gallium/auxiliary/util/u_gen_mipmap.c
index 30f161f..b5eb896 100644
--- a/src/gallium/auxiliary/util/u_gen_mipmap.c
+++ b/src/gallium/auxiliary/util/u_gen_mipmap.c
@@ -1198,7 +1198,7 @@ make_3d_mipmap(struct gen_mipmap_state *ctx,
 {
    struct pipe_context *pipe = ctx->pipe;
    struct pipe_screen *screen = pipe->screen;
-   uint dstLevel, zslice;
+   uint dstLevel, zslice = 0;
 
    assert(pt->block.width == 1);
    assert(pt->block.height == 1);




More information about the mesa-commit mailing list