]> git.sur5r.net Git - openocd/commitdiff
mips: fix warning
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 17 Mar 2010 20:34:43 +0000 (21:34 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 17 Mar 2010 20:34:43 +0000 (21:34 +0100)
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/mips_ejtag.c

index cea8fa804c1fdd9e8027aa468d7d3f349eb78a27..42dc6e0b54011f6be0f455f8554c2c3dc2252a50 100644 (file)
@@ -135,7 +135,7 @@ int mips_ejtag_drscan_8(struct mips_ejtag *ejtag_info, uint32_t *data)
        if (tap == NULL)
                return ERROR_FAIL;
        struct scan_field field;
-       uint8_t t[4], r[4];
+       uint8_t t[4] = {0, 0, 0, 0}, r[4];
        int retval;
 
        field.num_bits = 8;