From 907bd31236a1b9ce11702cbd1ec792a07d74ab60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Mon, 30 Apr 2018 11:26:08 +0200 Subject: Correctly (zero-)initialise all locals. --- subr/ex_rtl_fetch.subr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subr/ex_rtl_fetch.subr') diff --git a/subr/ex_rtl_fetch.subr b/subr/ex_rtl_fetch.subr index babf267f..5b063469 100644 --- a/subr/ex_rtl_fetch.subr +++ b/subr/ex_rtl_fetch.subr @@ -4,7 +4,7 @@ exp_rtl_fetch_url_git() { local _tgtdir="${1}" _subdir="${2}" _url="${3}" _branch="${4}" \ - _oldpwd; + _oldpwd=""; if [ -e "${BUILD_DLCACHEDIR}/${_subdir}" ]; then (ex_rtl_fileop cd "${BUILD_DLCACHEDIR}/${_subdir}" &&\ git pull origin "${_branch:-main}"); @@ -22,7 +22,7 @@ exp_rtl_fetch_url_git() { }; ex_rtl_fetch_urls_git() { - local _tgtdir _url_spec _subdir _url _git_branch; + local _tgtdir="" _url_spec="" _subdir="" _url="" _git_branch=""; _tgtdir="${1}"; shift; for _url_spec in "${@}"; do _subdir="${_url_spec%=*}"; -- cgit v1.2.3