From cb5e86353b97a391d865ad12974b637242289f27 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 8 Jun 2021 13:15:24 -0700 Subject: [PATCH] Fixed crash after reinitializing libusb HID support --- src/hidapi/libusb/hid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hidapi/libusb/hid.c b/src/hidapi/libusb/hid.c index 1175da99c..dfc9ecb02 100644 --- a/src/hidapi/libusb/hid.c +++ b/src/hidapi/libusb/hid.c @@ -480,6 +480,7 @@ static void usb_string_cache_destroy() usb_string_cache = NULL; usb_string_cache_size = 0; + usb_string_cache_insert_pos = 0; } static struct usb_string_cache_entry *usb_string_cache_insert()