From 2d4c53b3383b1a1a326c1e6c7e36a6547f62054d Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Tue, 20 Jun 2023 09:20:33 -0700 Subject: [PATCH] jtag/drivers/xds110: Initialize `written` Otherwise I get a compiler warning, which fails the build. Change-Id: Ib7d4ab85160b537d07c74f8651ac42906fd661ed Signed-off-by: Tim Newsome --- src/jtag/drivers/xds110.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jtag/drivers/xds110.c b/src/jtag/drivers/xds110.c index 8e5d638db..47d06f1d8 100644 --- a/src/jtag/drivers/xds110.c +++ b/src/jtag/drivers/xds110.c @@ -579,7 +579,7 @@ static bool usb_get_response(uint32_t *total_bytes_read, uint32_t timeout) static bool usb_send_command(uint16_t size) { - int written; + int written = 0; bool success = true; /* Check the packet length */