diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2005-03-11 09:43:55 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2005-03-11 09:43:55 +0000 |
commit | 869c403c497d881a099e401ebd9e3f3db0f75599 (patch) | |
tree | 48f9f77f532abe1900aef5282dc8509e19de58c6 | |
parent | f121311c175c7c758dc5388246601c30aec1600e (diff) | |
download | ldetect-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |