From 58b4161d64e24ae7c6f4219a12503469fc7be3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 5 Nov 2013 05:57:59 +0000 Subject: [PATCH] initialize static arrays to 0 --- BaS_gcc/sources/pci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BaS_gcc/sources/pci.c b/BaS_gcc/sources/pci.c index b0ddc93..b66706b 100644 --- a/BaS_gcc/sources/pci.c +++ b/BaS_gcc/sources/pci.c @@ -484,6 +484,9 @@ void init_pci(void) /* initialize resource descriptor table */ memset(&resource_descriptors, 0, NUM_CARDS * NUM_RESOURCES * sizeof(struct pci_rd)); + /* initialize handles array */ + memset(handles, 0, NUM_CARDS * sizeof(uint16_t)); + pci_scan(); }