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 <christian.ehrhardt@canonical.com>
This commit is contained in:
Steve Langasek 2022-03-30 08:36:51 +02:00 committed by Stefan Berger
parent bd42b67edb
commit c2f2bc8eaf

View File

@ -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 */