Use locally scoped counter in hex2binary

This commit is contained in:
vin01 2021-03-31 14:09:38 +02:00
parent b468071d72
commit 09ce15ebe9
No known key found for this signature in database
GPG Key ID: 885C28C3B043329D
1 changed files with 1 additions and 1 deletions

View File

@ -2066,7 +2066,7 @@ fi
# key) or a text string (e.g., ASCII-encoded text). # key) or a text string (e.g., ASCII-encoded text).
hex2binary() { hex2binary() {
local s="$1" local s="$1"
local -i len remainder local -i i len remainder
len=${#s} len=${#s}
[[ $len%2 -ne 0 ]] && return 1 [[ $len%2 -ne 0 ]] && return 1