summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);