kiss: unset variables early

This commit is contained in:
Dylan Araps 2021-07-28 10:13:08 +03:00
parent 4f715f678b
commit b21d22964f
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
1 changed files with 2 additions and 2 deletions

4
kiss
View File

@ -336,9 +336,9 @@ pkg_cache() {
pkg_source_resolve() {
# Given a line of input from the sources file, return an absolute
# path to the source if it already exists, error if not.
ok "${2##\#*}" || { unset _res _des; return; }
unset _res _des _fnr
unset _des
ok "${2##\#*}" || return 0
# Surround each replacement with substitutions to handled escaped markers.
# First substitution turns '\MARKER' into ' ' (can't appear in sources as