diff options
author | Ed Maste <emaste@freebsd.org> | 2013-12-18 11:18:14 -0500 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-12-22 20:22:50 +0000 |
commit | 9b2cc2f72f0774e9558006a267de524dfe79ec88 (patch) | |
tree | 335dcfd196991ef9d85165ef27df2a2b6a1c59ba | |
parent | 23be4e435f8b61c4603bd7822b3fb3c2c46cb16a (diff) |
Avoid 'may be used uninitialized' warning from FreeBSD base GCC
Change-Id: Ice2472bf7a467652485a5a8c36880c6a47d64c6c
Signed-off-by: Ed Maste <emaste@freebsd.org>
Reviewed-on: http://openocd.zylin.com/1835
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
-rw-r--r-- | src/flash/nor/lpcspifi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/lpcspifi.c b/src/flash/nor/lpcspifi.c index 0400dd74..b30a2d93 100644 --- a/src/flash/nor/lpcspifi.c +++ b/src/flash/nor/lpcspifi.c @@ -774,7 +774,7 @@ static int lpcspifi_read_flash_id(struct flash_bank *bank, uint32_t *id) uint32_t ssp_base = lpcspifi_info->ssp_base; uint32_t io_base = lpcspifi_info->io_base; uint32_t value; - uint8_t id_buf[3]; + uint8_t id_buf[3] = {0, 0, 0}; int retval; if (target->state != TARGET_HALTED) { |