Skip to content

Commit

Permalink
Fix for #1, the command struct contains pointers and shouldn't be zero'd
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasz-lisowski committed May 17, 2024
1 parent a8ca524 commit c0b1e31
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/apdu.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ swicc_ret_et swicc_apdu_cmd_parse(uint8_t const *const buf_raw,
return SWICC_RET_APDU_HDR_TOO_SHORT;
}

memset(cmd, 0, sizeof(swicc_apdu_cmd_st));
cmd->hdr->cla = swicc_apdu_cmd_cla_parse(buf_raw[0]);
cmd->hdr->ins = buf_raw[1U];
cmd->hdr->p1 = buf_raw[2U];
Expand Down

0 comments on commit c0b1e31

Please sign in to comment.