summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2009-09-30 15:28:37 +0000
committerThierry Vignaud <tv@mandriva.org>2009-09-30 15:28:37 +0000
commite4450db0caff33abc821a1f8e28ce48f5bef5cc3 (patch)
tree8073f267659984e9d70707524041a44c4f692078
parentb1b284b79e64ad655138e5fb86b193ffddc59d1b (diff)
downloadldetect-e4450db0caff33abc821a1f8e28ce48f5bef5cc3.tar
ldetect-e4450db0caff33abc821a1f8e28ce48f5bef5cc3.tar.gz
ldetect-e4450db0caff33abc821a1f8e28ce48f5bef5cc3.tar.bz2
ldetect-e4450db0caff33abc821a1f8e28ce48f5bef5cc3.tar.xz
ldetect-e4450db0caff33abc821a1f8e28ce48f5bef5cc3.zip
(pci_probe) make sure not to retrieve values from previous devices
-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);