Skip to content

Commit

Permalink
fix uninitialized dc
Browse files Browse the repository at this point in the history
  • Loading branch information
dangfan committed Jul 15, 2023
1 parent e707ad3 commit d5343a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion applets/ctap/ctap.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ static uint8_t ctap_make_credential(CborEncoder *encoder, uint8_t *params, size_
// Overwrite that credential.
// c) Store the user parameter along with the newly-created key pair.
// d) If authenticator does not have enough internal storage to persist the new credential, return CTAP2_ERR_KEY_STORE_FULL.
CTAP_discoverable_credential dc;
CTAP_discoverable_credential dc = {0};
if (mc.options.rk == OPTION_TRUE) {
DBG_MSG("Processing discoverable credential\n");
int size = get_file_size(DC_FILE);
Expand Down

0 comments on commit d5343a8

Please sign in to comment.