[pkg-opensc-commit] [libp11] 78/239: kill some dead code.

Eric Dorland eric at moszumanska.debian.org
Sat Oct 17 06:21:11 UTC 2015


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository libp11.

commit 591113cdaa2eb3da4dc5fba24c246a9c1de72ee0
Author: Andreas Jellinghaus <andreas at ionisiert.de>
Date:   Thu Dec 1 19:45:51 2005 +0000

    kill some dead code.
---
 src/p11_key.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/p11_key.c b/src/p11_key.c
index 42358cb..e6edb0c 100644
--- a/src/p11_key.c
+++ b/src/p11_key.c
@@ -464,9 +464,9 @@ static int hex_to_bin(const char *in, unsigned char *out, size_t * outlen)
 
 	while (*in != '\0') {
 		int byte = 0, nybbles = 2;
-		char c;
 
 		while (nybbles-- && *in && *in != ':') {
+			char c;
 			byte <<= 4;
 			c = *in++;
 			if ('0' <= c && c <= '9')
@@ -491,7 +491,6 @@ static int hex_to_bin(const char *in, unsigned char *out, size_t * outlen)
 		}
 		out[count++] = (unsigned char) byte;
 		left--;
-		c++;
 	}
 
 	*outlen = count;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git



More information about the pkg-opensc-commit mailing list