From: Øyvind Harboe Date: Wed, 17 Mar 2010 20:34:43 +0000 (+0100) Subject: mips: fix warning X-Git-Tag: v0.5.0-rc1~829 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0529431fe740fbf04b41129d84e2d8633b13fabe;p=openocd mips: fix warning Signed-off-by: Øyvind Harboe --- diff --git a/src/target/mips_ejtag.c b/src/target/mips_ejtag.c index cea8fa80..42dc6e0b 100644 --- a/src/target/mips_ejtag.c +++ b/src/target/mips_ejtag.c @@ -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;