summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mandriva.org>2009-06-25 14:50:44 +0000
committerPascal Terjan <pterjan@mandriva.org>2009-06-25 14:50:44 +0000
commit0e8660e859d9d5c035db74713c727fdb52703c4c (patch)
tree391fa88652a6b98156b34d86ad1c219f0feb2318
parent5d36c9abed2306e48e6efdd0ebdca8d45e0f780e (diff)
downloadldetect-0e8660e859d9d5c035db74713c727fdb52703c4c.tar
ldetect-0e8660e859d9d5c035db74713c727fdb52703c4c.tar.gz
ldetect-0e8660e859d9d5c035db74713c727fdb52703c4c.tar.bz2
ldetect-0e8660e859d9d5c035db74713c727fdb52703c4c.tar.xz
ldetect-0e8660e859d9d5c035db74713c727fdb52703c4c.zip
same for usb
-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;