calloc UsbDevice instead of pointer (#3790)

This commit is contained in:
Joshua de Reeper 2025-11-12 11:40:39 +01:00 committed by GitHub
parent bbd985fe4b
commit 25344a3b89
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -366,7 +366,7 @@ public:
const auto desc = FillDeviceDescriptor();
ASSERT(desc);
const auto fake = static_cast<UsbDevice*>(calloc(1, sizeof(UsbDevice*)));
const auto fake = static_cast<UsbDevice*>(calloc(1, sizeof(UsbDevice)));
fake->bus_number = 0;
fake->port_number = 0;
fake->device_address = 0;