summaryrefslogtreecommitdiff
path: root/com32/hdt/hdt-menu-pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-menu-pci.c')
-rw-r--r--com32/hdt/hdt-menu-pci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/com32/hdt/hdt-menu-pci.c b/com32/hdt/hdt-menu-pci.c
index 74c07107..451aaaeb 100644
--- a/com32/hdt/hdt-menu-pci.c
+++ b/com32/hdt/hdt-menu-pci.c
@@ -94,6 +94,8 @@ static void compute_pci_device(struct s_my_menu *menu,
add_item(buffer,statbuffer,OPT_INACTIVE,NULL,0);
menu->items_count++;
+ memset(kernel_modules,0,sizeof(kernel_modules));
+
if (pci_device->dev_info->linux_kernel_module_count > 1) {
for (int i = 0;
i < pci_device->dev_info->linux_kernel_module_count; i++) {