mirror of
https://git.proxmox.com/git/fwupd
synced 2025-07-09 10:57:46 +00:00
dfu: Clear the buffer before getting the status
This makes emulation of DFU devices work as the control transfer data is then predictable.
This commit is contained in:
parent
8ed6a52ca4
commit
add087966d
@ -725,7 +725,7 @@ fu_dfu_device_refresh(FuDfuDevice *self, GError **error)
|
||||
FuDfuDevicePrivate *priv = GET_PRIVATE(self);
|
||||
GUsbDevice *usb_device = fu_usb_device_get_dev(FU_USB_DEVICE(self));
|
||||
gsize actual_length = 0;
|
||||
guint8 buf[6];
|
||||
guint8 buf[6] = {0x0};
|
||||
g_autoptr(GError) error_local = NULL;
|
||||
|
||||
g_return_val_if_fail(FU_IS_DFU_DEVICE(self), FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user