From e18b7117cdee654d888629327cff78e34dfe6587 Mon Sep 17 00:00:00 2001 From: aet Date: Sat, 20 Dec 2003 14:41:05 +0000 Subject: [PATCH] - Warning fix git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1690 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/pkcs15init/pkcs15-cflex.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pkcs15init/pkcs15-cflex.c b/src/pkcs15init/pkcs15-cflex.c index e97fa458..eb713158 100644 --- a/src/pkcs15init/pkcs15-cflex.c +++ b/src/pkcs15init/pkcs15-cflex.c @@ -130,10 +130,10 @@ cryptoflex_init_card(sc_profile_t *profile, sc_card_t *card) sc_file_t *file; u8 buf[32], serial[128]; size_t len; - int r, i; + int r; sc_format_path("3F000002", &path); - if (sc_select_file(card, &path, &file) < 0) { + if ((r = sc_select_file(card, &path, &file)) < 0) { if (r == SC_ERROR_FILE_NOT_FOUND) return 0; return r;