Skip to content

Commit

Permalink
lib: libutee: initialize variables in TEE_GetPropertyAsString()
Browse files Browse the repository at this point in the history
Initialize local variables at declaration as specified by the coding
guidelines.

Signed-off-by: Clement Faure <clement.faure@nxp.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
  • Loading branch information
clementfaure authored and jforissier committed Aug 24, 2023
1 parent 8e81e60 commit 4d6266d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/libutee/tee_api_property.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ TEE_Result TEE_GetPropertyAsString(TEE_PropSetHandle propsetOrEnumerator,
const char *name, char *value,
size_t *value_len)
{
TEE_Result res;
size_t l;
TEE_Result res = TEE_ERROR_GENERIC;
size_t l = 0;
enum user_ta_prop_type type = USER_TA_PROP_TYPE_INVALID;
void *tmp_buf = 0;
uint32_t tmp_len;
uint32_t uint32_val;
bool bool_val;
TEE_Identity *p_identity_val;
uint32_t tmp_len = 0;
uint32_t uint32_val = 0;
bool bool_val = false;
TEE_Identity *p_identity_val = NULL;

if (is_propset_pseudo_handle(propsetOrEnumerator))
__utee_check_instring_annotation(name);
Expand Down

0 comments on commit 4d6266d

Please sign in to comment.