soc/intel/alderlake: Fix Coverity CID 1488814

CID 1488814:  Uninitialized variables  (UNINIT)

Commit c66ea98 introduced an issue after static analysis on merge.
Because every APIC is associated with a CPU, this did not result in
any issues at runtime but should be fixed/cleaned up.  Now, the path
name is initialized to null.

Fixes: Coverity CID 1488814, commit c66ea98
TEST=Built on brya

Change-Id: I0cfc8fd7a0c39e6610a9361630e3755293084f3d
Signed-off-by: Tarun Tuli <taruntuli@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64336
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
Tarun Tuli 2022-05-13 15:19:40 +00:00 committed by Arthur Heymans
parent 29bc79fddb
commit ec3c41a6ee
1 changed files with 1 additions and 1 deletions

View File

@ -293,7 +293,7 @@ void soc_lpi_get_constraints(void *unused)
break;
case DEVICE_PATH_APIC:
char path[32];
char path[32] = {0};
/* Lookup CPU id */
for (size_t i = 0; i < CONFIG_MAX_CPUS; i++) {