From 8183cbdbe51ae812b90eef9806fa7e1f90ec7a23 Mon Sep 17 00:00:00 2001 From: Billy Tsai Date: Fri, 1 Jul 2022 11:32:49 +0800 Subject: [PATCH] ASD: Fix the uninitialized value. The struct member "padding" doesn't assign the initial value before the shift was executed. Signed-off-by: Billy Tsai --- jtag_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jtag_handler.c b/jtag_handler.c index 13311a4..e84014f 100644 --- a/jtag_handler.c +++ b/jtag_handler.c @@ -517,6 +517,7 @@ STATUS perform_shift(JTAG_Handler* state, unsigned int number_of_bits, (current_tap_state == jtag_shf_ir) ? JTAG_SIR_XFER : JTAG_SDR_XFER; xfer.length = number_of_bits; xfer.direction = JTAG_READ_WRITE_XFER; + xfer.padding = 0; if (output != NULL) {