From 46f2a35f0ddeea59dc5f8d446c58afe5ef7a9dbe Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 25 Sep 2025 16:56:13 +0800 Subject: Fix: array initialization compatibility with MSVC --- src/libirecovery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/libirecovery.c b/src/libirecovery.c index 8c2c518..7993246 100644 --- a/src/libirecovery.c +++ b/src/libirecovery.c @@ -3269,7 +3269,7 @@ static irecv_error_t irecv_send_command_raw(irecv_client_t client, const char* c if ((error = irecv_usb_interrupt_transfer(client, 0x83, &buf[0], sizeof(buf), &bytes, USB_TIMEOUT))) return error; if (bytes != sizeof(legacyCMD)) return IRECV_E_UNKNOWN_ERROR; #endif - char cmdstr[0x100] = {}; + char cmdstr[0x100] = {0}; if (length & 0xf) { length &= ~0xf; length += 0x10; @@ -3730,7 +3730,7 @@ irecv_error_t irecv_send_buffer(irecv_client_t client, unsigned char* buffer, un if (legacy_recovery_mode) { irecv_reconnect(client, 0); - char cmdstr[0x100] = {}; + char cmdstr[0x100] = {0}; snprintf(cmdstr, sizeof(cmdstr), "setenv filesize %d", (int)length); irecv_send_command(client, cmdstr); } -- cgit v1.1-32-gdbae