diff options
Diffstat (limited to 'usb_device.c')
-rw-r--r-- | usb_device.c | 2 |
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); |