From 58cd9aaeb699d495d060aa98b2837cc9dec9ce4a Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Tue, 3 Apr 2018 09:52:01 +0200 Subject: [PATCH] card-authentic.c: Initialize variables and make it build Ammends: #1205 --- src/libopensc/card-authentic.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libopensc/card-authentic.c b/src/libopensc/card-authentic.c index fb88404a..1d3bb267 100644 --- a/src/libopensc/card-authentic.c +++ b/src/libopensc/card-authentic.c @@ -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,