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>
  • Loading branch information
clementfaure committed Aug 22, 2023
1 parent cc10038 commit 75c13f3
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 75c13f3

Please sign in to comment.