Skip to content

Commit

Permalink
ext: fix oberon driver uninitialized variable
Browse files Browse the repository at this point in the history
Fix for gcc warning: 'res' may be used uninitialized

Signed-off-by: Krzysztof Taborowski <krzysztof.taborowski@nordicsemi.no>
  • Loading branch information
ktaborowski authored and jfischer-no committed Feb 19, 2024
1 parent bbced1b commit 7d209a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/oberon/psa/drivers/oberon_ec_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ psa_status_t oberon_generate_ec_key(
const psa_key_attributes_t *attributes,
uint8_t *key, size_t key_size, size_t *key_length)
{
int res;
int res = 0;
psa_status_t status;
size_t bits = psa_get_key_bits(attributes);
psa_key_type_t type = psa_get_key_type(attributes);
Expand Down

0 comments on commit 7d209a5

Please sign in to comment.