summaryrefslogtreecommitdiffstats
path: root/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'usb.c')
-rw-r--r--usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb.c b/usb.c
index 235b047..f2b7495 100644
--- a/usb.c
+++ b/usb.c
@@ -103,7 +103,7 @@ extern struct pciusb_entries usb_probe(void) {
}
}
fclose(f);
- realloc(r.entries, sizeof(struct pciusb_entry) * r.nb);
+ r.entries = realloc(r.entries, sizeof(struct pciusb_entry) * r.nb);
pciusb_find_modules(&r, "usbtable", LOAD, 0);
return r;