Mesa (master): nv50: Silence uninitialized variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Thu Sep 16 00:25:12 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Wed Sep 15 17:24:50 2010 -0700

nv50: Silence uninitialized variable warning.

---

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

diff --git a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
index 2faabc8..921a1d5 100644
--- a/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
+++ b/src/gallium/drivers/nv50/nv50_tgsi_to_nc.c
@@ -1539,7 +1539,7 @@ bld_instruction(struct bld_context *bld,
    struct nv_value *src0;
    struct nv_value *src1;
    struct nv_value *src2;
-   struct nv_value *dst0[4];
+   struct nv_value *dst0[4] = { 0 };
    struct nv_value *temp;
    int c;
    uint opcode = translate_opcode(insn->Instruction.Opcode);




More information about the mesa-commit mailing list