aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@HansenPartnership.com>2020-03-24 08:27:19 -0700
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2020-03-24 09:13:46 -0700
commit0d58f14cacb195e35aa13ae0d5574e26f106a9b3 (patch)
tree0f6da7a0eb85655ea396c58a8fab4b6e3db2e77b
parente6fcb0558a51811f6aa9fef0326ab22e727bac77 (diff)
downloadopenssl_tpm2_engine-0d58f14cacb195e35aa13ae0d5574e26f106a9b3.tar.gz
seal_tpm2_data: fix compile problem on older gcc
gcc 4.8.5 is giving a spurious uninitialized variable warning for reason. Shut this up by initializing it to the empty string. Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
-rw-r--r--seal_tpm2_data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/seal_tpm2_data.c b/seal_tpm2_data.c
index a04f878..389ae9a 100644
--- a/seal_tpm2_data.c
+++ b/seal_tpm2_data.c
@@ -95,7 +95,7 @@ int main(int argc, char **argv)
TPM_RC rc;
TSS_CONTEXT *tssContext;
const char *dir;
- const char *reason;
+ const char *reason = ""; /* gcc 4.8.5 gives spurious uninitialized warning without this */
TPMT_HA digest;
uint32_t sizeInBytes;
TPM_HANDLE authHandle;