Skip to content

Commit

Permalink
Silence gcc 12.2.0 warning
Browse files Browse the repository at this point in the history
Unfortunately this compiler complains about a variable potentially being
used un-initialized.  Silence the warning by initializing it to a sane
default.

Signed-off-by: Patrick Wildt <[email protected]>
  • Loading branch information
Patrick Wildt committed May 15, 2024
1 parent bdce657 commit 5da4b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/psa_crypto_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ const mbedtls_cipher_info_t *mbedtls_cipher_info_from_psa(
{
mbedtls_cipher_mode_t mode;
psa_status_t status;
mbedtls_cipher_id_t cipher_id_tmp;
mbedtls_cipher_id_t cipher_id_tmp = MBEDTLS_CIPHER_ID_NONE;

status = mbedtls_cipher_values_from_psa(alg, key_type, &key_bits, &mode, &cipher_id_tmp);
if (status != PSA_SUCCESS) {
Expand Down

0 comments on commit 5da4b7d

Please sign in to comment.