Skip to content

Commit

Permalink
Merge pull request Mbed-TLS#3 from gilles-peskine-arm/key_ladder_demo…
Browse files Browse the repository at this point in the history
…-maybe_uninitialized

Fix maybe-uninitialized warning
  • Loading branch information
Patater authored Jan 4, 2019
2 parents 9e0feff + 5e09bc7 commit d668bae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/psa/key_ladder_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static psa_status_t wrap_data( const char *input_file_name,
FILE *output_file = NULL;
long input_position;
size_t input_size;
size_t buffer_size;
size_t buffer_size = 0;
unsigned char *buffer = NULL;
size_t ciphertext_size;
wrapped_data_header_t header;
Expand Down Expand Up @@ -469,7 +469,7 @@ static psa_status_t unwrap_data( const char *input_file_name,
FILE *input_file = NULL;
FILE *output_file = NULL;
unsigned char *buffer = NULL;
size_t ciphertext_size;
size_t ciphertext_size = 0;
size_t plaintext_size;
wrapped_data_header_t header;
unsigned char extra_byte;
Expand Down

0 comments on commit d668bae

Please sign in to comment.