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 authored and sezrab committed Jun 14, 2024
1 parent 152983b commit ed9a494
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 @@ -26,7 +26,7 @@ const mbedtls_cipher_info_t *mbedtls_cipher_info_from_psa(
mbedtls_cipher_id_t *cipher_id)
{
mbedtls_cipher_mode_t mode;
mbedtls_cipher_id_t cipher_id_tmp;
mbedtls_cipher_id_t cipher_id_tmp = MBEDTLS_CIPHER_ID_NONE;

if (PSA_ALG_IS_AEAD(alg)) {
alg = PSA_ALG_AEAD_WITH_SHORTENED_TAG(alg, 0);
Expand Down

0 comments on commit ed9a494

Please sign in to comment.