diff options
Diffstat (limited to 'tests/tpm_lite/tlcl_tests.c')
-rw-r--r-- | tests/tpm_lite/tlcl_tests.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/tpm_lite/tlcl_tests.c b/tests/tpm_lite/tlcl_tests.c index f36021f9..c164f4fe 100644 --- a/tests/tpm_lite/tlcl_tests.c +++ b/tests/tpm_lite/tlcl_tests.c @@ -14,16 +14,16 @@ const char* resilient_startup = NULL; uint32_t TlclStartupIfNeeded(void) { - static char* null_getenv = "some string"; /* just a unique address */ - uint32_t result = TlclStartup(); - if (resilient_startup == NULL) { - resilient_startup = getenv("TLCL_RESILIENT_STARTUP"); - if (resilient_startup == NULL) { - resilient_startup = null_getenv; - } - } - if (resilient_startup == null_getenv) { - return result; - } - return result == TPM_E_INVALID_POSTINIT ? TPM_SUCCESS : result; + static char* null_getenv = "some string"; /* just a unique address */ + uint32_t result = TlclStartup(); + if (resilient_startup == NULL) { + resilient_startup = getenv("TLCL_RESILIENT_STARTUP"); + if (resilient_startup == NULL) { + resilient_startup = null_getenv; + } + } + if (resilient_startup == null_getenv) { + return result; + } + return result == TPM_E_INVALID_POSTINIT ? TPM_SUCCESS : result; } |