summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Yu <jackcwyu@google.com>2020-02-03 21:20:24 +0800
committerJack Yu <jackcwyu@google.com>2020-02-03 13:23:11 +0000
commit9f2947db3c7503e14ad16554d78b6d1c18950ee0 (patch)
tree114f7300b40b0ed2649a8e52f2356c81876f16c3
parent45fc88171708b6d5af9dbbfccf315e1b5e4ebb3a (diff)
downloadplatform_hardware_nxp_secure_element-9f2947db3c7503e14ad16554d78b6d1c18950ee0.tar.gz
platform_hardware_nxp_secure_element-9f2947db3c7503e14ad16554d78b6d1c18950ee0.tar.bz2
platform_hardware_nxp_secure_element-9f2947db3c7503e14ad16554d78b6d1c18950ee0.zip
Set initial value to ese_current_stateandroid-r-preview-1
Bug: 148177052 Test: SE service loaded Change-Id: Iba41dde5130f771e62534722d457730bd2d5d3ac
-rwxr-xr-xlibese-spi/p73/spm/phNxpEse_Spm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libese-spi/p73/spm/phNxpEse_Spm.cpp b/libese-spi/p73/spm/phNxpEse_Spm.cpp
index 3d73655..f35a891 100755
--- a/libese-spi/p73/spm/phNxpEse_Spm.cpp
+++ b/libese-spi/p73/spm/phNxpEse_Spm.cpp
@@ -298,7 +298,7 @@ ESESTATUS phNxpEse_SPM_DisablePwrControl(unsigned long arg) {
ESESTATUS phNxpEse_SPM_GetState(spm_state_t* current_state) {
int32_t ret = -1;
ESESTATUS status = ESESTATUS_SUCCESS;
- spm_state_t ese_current_state;
+ spm_state_t ese_current_state = SPM_STATE_INVALID;
if (current_state == NULL) {
ALOGE("%s : failed Invalid argument", __FUNCTION__);