projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
jtag/drivers/ulink: fix clang static analyzer warning
[fw/openocd]
/
src
/
target
/
arm_jtag.c
diff --git
a/src/target/arm_jtag.c
b/src/target/arm_jtag.c
index d2b9feeed2c2b716a0062b736ed94163e7a95ec9..49aca3487b6448133a44424432cbd2686a96f8eb 100644
(file)
--- a/
src/target/arm_jtag.c
+++ b/
src/target/arm_jtag.c
@@
-16,9
+16,7
@@
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
- * along with this program; if not, write to the *
- * Free Software Foundation, Inc., *
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
+ * along with this program. If not, see <http://www.gnu.org/licenses/>. *
***************************************************************************/
#ifdef HAVE_CONFIG_H
***************************************************************************/
#ifdef HAVE_CONFIG_H
@@
-35,7
+33,7
@@
int arm_jtag_set_instr_inner(struct jtag_tap *tap,
uint32_t new_instr, void *no_verify_capture, tap_state_t end_state)
{
struct scan_field field;
uint32_t new_instr, void *no_verify_capture, tap_state_t end_state)
{
struct scan_field field;
- uint8_t t[4];
+ uint8_t t[4]
= { 0 }
;
field.num_bits = tap->ir_length;
field.out_value = t;
field.num_bits = tap->ir_length;
field.out_value = t;
@@
-58,7
+56,7
@@
int arm_jtag_scann_inner(struct arm_jtag *jtag_info, uint32_t new_scan_chain, ta
{
int retval = ERROR_OK;
{
int retval = ERROR_OK;
- uint8_t out_value[4];
+ uint8_t out_value[4]
= { 0 }
;
buf_set_u32(out_value, 0, jtag_info->scann_size, new_scan_chain);
struct scan_field field = { .num_bits = jtag_info->scann_size, .out_value = out_value, };
buf_set_u32(out_value, 0, jtag_info->scann_size, new_scan_chain);
struct scan_field field = { .num_bits = jtag_info->scann_size, .out_value = out_value, };