summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pci.c b/pci.c
index 921be58..11c987b 100644
--- a/pci.c
+++ b/pci.c
@@ -56,6 +56,7 @@ extern struct pciusb_entries pci_probe(void) {
struct pciusb_entry *e = &r.entries[r.nb];
unsigned char class_prog = 0;
+ memset(buf, 0, BUF_SIZE); // make sure not to retrieve values from previous devices
pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_CLASS);
pciusb_initialize(e);