From 09ce15ebe9c4b7e40518e9d5a807798af737e26c Mon Sep 17 00:00:00 2001 From: vin01 Date: Wed, 31 Mar 2021 14:09:38 +0200 Subject: [PATCH] Use locally scoped counter in hex2binary --- testssl.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testssl.sh b/testssl.sh index b52c880..2779579 100755 --- a/testssl.sh +++ b/testssl.sh @@ -2066,7 +2066,7 @@ fi # key) or a text string (e.g., ASCII-encoded text). hex2binary() { local s="$1" - local -i len remainder + local -i i len remainder len=${#s} [[ $len%2 -ne 0 ]] && return 1