From 3955a708434987d6e9a2ffb0c52e102cd0eedf56 Mon Sep 17 00:00:00 2001 From: Gwenhael Goavec-Merou Date: Thu, 27 Jul 2023 07:39:20 +0200 Subject: [PATCH] jtag: fix warning (uninitialized tms) --- src/jtag.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag.cpp b/src/jtag.cpp index 2a71b4e..396b8e2 100644 --- a/src/jtag.cpp +++ b/src/jtag.cpp @@ -450,7 +450,7 @@ int Jtag::shiftIR(unsigned char *tdi, unsigned char *tdo, int irlen, int end_sta void Jtag::set_state(int newState) { - unsigned char tms; + unsigned char tms = 0; while (newState != _state) { display("_state : %16s(%02d) -> %s(%02d) ", getStateName((tapState_t)_state),