From dc3f3bb8b13188907093610a0be96f631fe8f39a Mon Sep 17 00:00:00 2001 From: Gabor Mezei Date: Fri, 1 Jul 2022 15:06:34 +0200 Subject: [PATCH] Initilize variable Coverity scan detected a problem of an uinitilized variable. Signed-off-by: Gabor Mezei --- tests/src/psa_exercise_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/src/psa_exercise_key.c b/tests/src/psa_exercise_key.c index 4f08835b9..3705bc52c 100644 --- a/tests/src/psa_exercise_key.c +++ b/tests/src/psa_exercise_key.c @@ -623,7 +623,7 @@ static int exercise_key_agreement_key( mbedtls_svc_key_id_t key, psa_algorithm_t alg ) { psa_key_derivation_operation_t operation = PSA_KEY_DERIVATION_OPERATION_INIT; - unsigned char input[1]; + unsigned char input[1] = { 0 }; unsigned char output[1]; int ok = 0; psa_algorithm_t kdf_alg = PSA_ALG_KEY_AGREEMENT_GET_KDF( alg );