fixed warnings about uninitialized data
This commit is contained in:
parent
9b2023c7ae
commit
44447b7801
|
@ -471,7 +471,7 @@ const u8 *sc_asn1_find_tag(sc_context_t *ctx, const u8 * buf,
|
|||
|
||||
*taglen_in = 0;
|
||||
while (left >= 2) {
|
||||
unsigned int cla, tag, mask = 0xff00;
|
||||
unsigned int cla = 0, tag, mask = 0xff00;
|
||||
|
||||
buf = p;
|
||||
/* read a tag */
|
||||
|
@ -504,7 +504,7 @@ const u8 *sc_asn1_skip_tag(sc_context_t *ctx, const u8 ** buf, size_t *buflen,
|
|||
{
|
||||
const u8 *p = *buf;
|
||||
size_t len = *buflen, taglen;
|
||||
unsigned int cla, tag;
|
||||
unsigned int cla = 0, tag;
|
||||
|
||||
if (sc_asn1_read_tag((const u8 **) &p, len, &cla, &tag, &taglen) != SC_SUCCESS)
|
||||
return NULL;
|
||||
|
|
|
@ -2333,7 +2333,7 @@ static int piv_validate_general_authentication(sc_card_t *card,
|
|||
|
||||
u8 sbuf[4096]; /* needs work. for 3072 keys, needs 384+10 or so */
|
||||
u8 *rbuf = NULL;
|
||||
size_t rbuflen;
|
||||
size_t rbuflen = 0;
|
||||
|
||||
SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue