summaryrefslogtreecommitdiffhomepage
path: root/subr/ex_rtl_fetch.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-04-30 11:26:08 +0200
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-04-30 11:26:08 +0200
commit907bd31236a1b9ce11702cbd1ec792a07d74ab60 (patch)
tree1d24fdf9810c38e4c54983d65bcfcd6607d4fefd /subr/ex_rtl_fetch.subr
parente7f40a6a3266a5072c7a2a9a75722b7743ca3b02 (diff)
downloadmidipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.bz2
midipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.xz
Correctly (zero-)initialise all locals.
Diffstat (limited to 'subr/ex_rtl_fetch.subr')
-rw-r--r--subr/ex_rtl_fetch.subr4
1 files changed, 2 insertions, 2 deletions
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%=*}";