card-authentic.c: Initialize variables and make it build

Ammends: #1205
This commit is contained in:
Jakub Jelen 2018-04-03 09:52:01 +02:00 committed by Frank Morgner
parent 0997c33a30
commit 58cd9aaeb6
1 changed files with 3 additions and 3 deletions

View File

@ -813,7 +813,7 @@ authentic_read_binary(struct sc_card *card, unsigned int idx,
struct sc_context *ctx = card->ctx;
struct sc_apdu apdu;
size_t sz, rest, ret_count = 0;
int rv;
int rv = SC_SUCCESS;
LOG_FUNC_CALLED(ctx);
sc_log(ctx,
@ -859,7 +859,7 @@ authentic_write_binary(struct sc_card *card, unsigned int idx,
struct sc_context *ctx = card->ctx;
struct sc_apdu apdu;
size_t sz, rest;
int rv;
int rv = SC_SUCCESS;
LOG_FUNC_CALLED(ctx);
sc_log(ctx,
@ -902,7 +902,7 @@ authentic_update_binary(struct sc_card *card, unsigned int idx,
struct sc_context *ctx = card->ctx;
struct sc_apdu apdu;
size_t sz, rest;
int rv;
int rv = SC_SUCCESS;
LOG_FUNC_CALLED(ctx);
sc_log(ctx,