From c15c551eec9662e4abb84a4320740ea15bc83d8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Fri, 20 Nov 2015 12:35:15 +0000 Subject: [PATCH] initialize handles array --- BaS_gcc/pci/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaS_gcc/pci/pci.c b/BaS_gcc/pci/pci.c index 80f4fde..b2a8169 100644 --- a/BaS_gcc/pci/pci.c +++ b/BaS_gcc/pci/pci.c @@ -77,7 +77,7 @@ static int num_pci_classes = sizeof(pci_classes) / sizeof(struct pci_class); #define NUM_CARDS 10 #define NUM_RESOURCES 7 /* holds the handle of a card at position = array index */ -static int32_t handles[NUM_CARDS]; +static int32_t handles[NUM_CARDS] = { -1 }; /* holds the card's resource descriptors; filled in pci_device_config() */ static struct pci_rd resource_descriptors[NUM_CARDS][NUM_RESOURCES];