From 4f2b5a5dbd40d6b1561c872a8883b124a8e24008 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 17 Nov 2022 20:36:40 +0100 Subject: [PATCH] device/cpu_device.c: Zero initialize struct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't rely on this being 0. Change-Id: I7c0d16b6a265bf9c7abcfdf2f18a43706ee03ea1 Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/69752 Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) Reviewed-by: Elyes Haouas --- src/device/cpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/device/cpu_device.c b/src/device/cpu_device.c index 51a1994a8a..f406e23f89 100644 --- a/src/device/cpu_device.c +++ b/src/device/cpu_device.c @@ -7,7 +7,7 @@ struct device *add_cpu_device(struct bus *cpu_bus, unsigned int apic_id, int enabled) { - struct device_path cpu_path; + struct device_path cpu_path = {}; struct device *cpu; /* Build the CPU device path */