summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2005-03-11 09:43:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2005-03-11 09:43:55 +0000
commit869c403c497d881a099e401ebd9e3f3db0f75599 (patch)
tree48f9f77f532abe1900aef5282dc8509e19de58c6
parentf121311c175c7c758dc5388246601c30aec1600e (diff)
downloadldetect-869c403c497d881a099e401ebd9e3f3db0f75599.tar
ldetect-869c403c497d881a099e401ebd9e3f3db0f75599.tar.gz
ldetect-869c403c497d881a099e401ebd9e3f3db0f75599.tar.bz2
ldetect-869c403c497d881a099e401ebd9e3f3db0f75599.tar.xz
ldetect-869c403c497d881a099e401ebd9e3f3db0f75599.zip
setting .nb to 0 seems a better idea than setting .entries
-rw-r--r--pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pci.c b/pci.c
index f25ba48..dba4294 100644
--- a/pci.c
+++ b/pci.c
@@ -33,7 +33,8 @@ extern struct pciusb_entries pci_probe(void) {
perror(err_msg);
free(err_msg);
}
- r.entries = NULL;
+ r.nb = 0;
+ r.entries = NULL; // is that needed?
return r;
}
r.entries = malloc(sizeof(struct pciusb_entry) * MAX_DEVICES);