From 185dbe4847e1224a29e99c1f940e0dbb9a4fe099 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 8 Jan 2026 10:32:29 +0100 Subject: [PATCH] [clang,warnings] fix Wjump-misses-init --- channels/urbdrc/client/libusb/libusb_udevman.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/channels/urbdrc/client/libusb/libusb_udevman.c b/channels/urbdrc/client/libusb/libusb_udevman.c index 6e7b550db..8873c9979 100644 --- a/channels/urbdrc/client/libusb/libusb_udevman.c +++ b/channels/urbdrc/client/libusb/libusb_udevman.c @@ -916,10 +916,12 @@ FREERDP_ENTRY_POINT(UINT VCAPITYPE libusb_freerdp_urbdrc_client_subsystem_entry( udevman->next_device_id = BASE_USBDEVICE_NUM; udevman->iface.plugin = pEntryPoints->plugin; - const int res = libusb_init(&udevman->context); - if (res != LIBUSB_SUCCESS) - goto fail; + { + const int res = libusb_init(&udevman->context); + if (res != LIBUSB_SUCCESS) + goto fail; + } #ifdef _WIN32 #if LIBUSB_API_VERSION >= 0x01000106