Merge pull request #1861 from vin01/3.1dev

Use locally scoped counter in hex2binary
This commit is contained in:
Dirk Wetter 2021-03-31 15:43:19 +02:00 committed by GitHub
commit f3e00738f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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