From c2f2bc8eaf8874e47a4ad4d8d4a6ccedb2e06560 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 30 Mar 2022 08:36:51 +0200 Subject: [PATCH] tpm12: Initialize variables due to gcc complaint (s390x, false positive) Detected by gcc on Ubuntu/s390x Origin: https://git.launchpad.net/ubuntu/+source/libtpms/tree/debian/patches/uninitialized-variable.patch Signed-off-by: Christian Ehrhardt --- src/tpm12/tpm_nvram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tpm12/tpm_nvram.c b/src/tpm12/tpm_nvram.c index 1235973c..b67e36c5 100644 --- a/src/tpm12/tpm_nvram.c +++ b/src/tpm12/tpm_nvram.c @@ -1290,7 +1290,7 @@ TPM_RESULT TPM_Process_NVReadValue(tpm_state_t *tpm_state, TPM_BOOL physicalPresence; TPM_BOOL isGPIO = FALSE; BYTE *gpioData = NULL; - TPM_NV_DATA_SENSITIVE *d1NvdataSensitive; + TPM_NV_DATA_SENSITIVE *d1NvdataSensitive = NULL; uint32_t s1Last; /* output parameters */