diff options
author | Richard Hughes <richard@hughsie.com> | 2023-02-03 11:47:20 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2023-02-03 12:30:17 +0000 |
commit | 9418531f0c8304669027a63495d4e1f079b9c0e6 (patch) | |
tree | 968e0afef4c1a83801abe362409796112759cdba | |
parent | 3124faf28e23009bd304dbd66cd32227c4142a9b (diff) | |
download | gusb-9418531f0c8304669027a63495d4e1f079b9c0e6.tar.gz |
Reset the in-order event index when clearing the event array
-rw-r--r-- | gusb/gusb-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gusb/gusb-device.c b/gusb/gusb-device.c index bbda96c..c44079d 100644 --- a/gusb/gusb-device.c +++ b/gusb/gusb-device.c @@ -1170,6 +1170,7 @@ g_usb_device_clear_events(GUsbDevice *self) { GUsbDevicePrivate *priv = GET_PRIVATE(self); g_return_if_fail(G_USB_IS_DEVICE(self)); + priv->event_idx = 0; g_ptr_array_set_size(priv->events, 0); } |