This is an automated email from Gerrit.

"Tim Newsome <t...@sifive.com>" just uploaded a new patch set to Gerrit, which 
you can find at https://review.openocd.org/c/openocd/+/7813

-- gerrit

commit 5cab0003bd9d9f0028a00c463d86f882d648de50
Author: Tim Newsome <t...@sifive.com>
Date:   Thu Jul 13 09:38:44 2023 -0700

    jtag/drivers/xds110: Fix compiler warning.
    
    Compiler would complain that `written` was used without being
    initialized.
    
    Signed-off-by: Tim Newsome <t...@sifive.com>
    Change-Id: Ibada85dcccfca6f1269c584cdbc4f2e3b93bb8f3

diff --git a/src/jtag/drivers/xds110.c b/src/jtag/drivers/xds110.c
index 371dc88034..55692b10ea 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 */

-- 

Reply via email to