summaryrefslogtreecommitdiffstats
path: root/usb_device.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb_device.c')
-rw-r--r--usb_device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb_device.c b/usb_device.c
index 5a468dd55..a4f6d123b 100644
--- a/usb_device.c
+++ b/usb_device.c
@@ -99,7 +99,7 @@ static int check_match(struct usb_match_value const *match_value, int value)
static void add_device(struct usb_device *device,
struct usb_device **devices)
{
- struct usb_device *copy = malloc(sizeof(struct usb_device));
+ struct usb_device *copy = malloc(sizeof(*copy));
assert(copy != NULL);