diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-09-08 10:50:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-09-08 10:50:14 +0100 |
commit | 3f71901f8c228f4de570abed1831ce3ee425343e (patch) | |
tree | a2dcd300d05ef8a2ec275b44a92a9d85bd3baa24 /dev-libs/opensc/files/opensc-0.18.0-build.patch | |
parent | 12bb627384ddfd47382b9f1b6464481a58d01ebb (diff) |
gentoo resync 08.09.2018
Diffstat (limited to 'dev-libs/opensc/files/opensc-0.18.0-build.patch')
-rw-r--r-- | dev-libs/opensc/files/opensc-0.18.0-build.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/dev-libs/opensc/files/opensc-0.18.0-build.patch b/dev-libs/opensc/files/opensc-0.18.0-build.patch index 342abd83eb01..1db749ca654e 100644 --- a/dev-libs/opensc/files/opensc-0.18.0-build.patch +++ b/dev-libs/opensc/files/opensc-0.18.0-build.patch @@ -64,3 +64,37 @@ index e85dfc45..13b0cc21 100644 -- 2.16.4 +From 0f7af8a647a8fca6b1f1ee2327c3d26bed38c8f6 Mon Sep 17 00:00:00 2001 +From: Alon Bar-Lev <alon.barlev@gmail.com> +Date: Sat, 8 Sep 2018 00:16:57 +0300 +Subject: [PATCH] reader-ctapi: ctapi_connect: remove unused variable + +from day 1 return value of _sc_parse_atr was ignored. +--- + src/libopensc/reader-ctapi.c | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +diff --git a/src/libopensc/reader-ctapi.c b/src/libopensc/reader-ctapi.c +index 8d4c1c24..4b94337f 100644 +--- a/src/libopensc/reader-ctapi.c ++++ b/src/libopensc/reader-ctapi.c +@@ -239,7 +239,6 @@ static int ctapi_connect(sc_reader_t *reader) + char rv; + u8 cmd[9], rbuf[256], sad, dad; + unsigned short lr; +- int r; + + if (reader->ctx->flags & SC_CTX_FLAG_TERMINATE) + return SC_ERROR_NOT_ALLOWED; +@@ -265,7 +264,7 @@ static int ctapi_connect(sc_reader_t *reader) + return SC_ERROR_INTERNAL; + reader->atr.len = lr; + memcpy(reader->atr.value, rbuf, lr); +- r = _sc_parse_atr(reader); ++ _sc_parse_atr(reader); + + return 0; + } +-- +2.16.4 + |