drivers/bitbang: silence scan-build warning
authorAntonio Borneo <borneo.antonio@gmail.com>
Wed, 1 Jun 2022 17:47:48 +0000 (19:47 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Fri, 10 Jun 2022 21:54:40 +0000 (21:54 +0000)
commit54f0cab18efadd7c132021228a3ef04ae1fea3ea
tree51d471b2f47c464f43b4b55cfd0bace04d5ac419
parent95135b39ccc3d8cec79053a71d0289e7fdeeafe9
drivers/bitbang: silence scan-build warning

The array is partially initialized with buf_set_u32(,5,32,), then
the rest of the array is read from SWD.
But scan-build report the array to have garbage content after the
initialization, due to the offset of 5 bit that only inits part of
the first byte.

Silence the false positive from scan-build by initializing the
array.

Change-Id: Ic38d50280f67939e3ec5fa05741f66d5f993f8c2
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7013
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
src/jtag/drivers/bitbang.c