26 lines
747 B
Diff
26 lines
747 B
Diff
From 014765d947b3624db9d5591299ea315607733c3c Mon Sep 17 00:00:00 2001
|
|
From: Neil Horman <neil.horman@privafy.com>
|
|
Date: Wed, 19 Oct 2022 08:10:05 -0400
|
|
Subject: [PATCH] Fix uninitialized variable
|
|
|
|
Resolves https://github.com/Irqbalance/irqbalance/pull/240#issuecomment-1283741093
|
|
|
|
Signed-off-by: Neil Horman <nhorman@gmail.com>
|
|
---
|
|
classify.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/classify.c b/classify.c
|
|
index 3858754..4ea4b44 100644
|
|
--- a/classify.c
|
|
+++ b/classify.c
|
|
@@ -646,7 +646,7 @@ static void build_one_dev_entry(const char *dirname, int build_irq)
|
|
struct dirent *entry;
|
|
DIR *msidir;
|
|
int irqnum;
|
|
- struct irq_info hint;
|
|
+ struct irq_info hint = {0};
|
|
char path[PATH_MAX];
|
|
char devpath[PATH_MAX];
|
|
|