From 9b2cc2f72f0774e9558006a267de524dfe79ec88 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 18 Dec 2013 11:18:14 -0500 Subject: [PATCH] Avoid 'may be used uninitialized' warning from FreeBSD base GCC Change-Id: Ice2472bf7a467652485a5a8c36880c6a47d64c6c Signed-off-by: Ed Maste Reviewed-on: http://openocd.zylin.com/1835 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/flash/nor/lpcspifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5