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>
This commit is contained in:
parent
23be4e435f
commit
9b2cc2f72f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue