summaryrefslogtreecommitdiffhomepage
path: root/subr/ex_pkg_dispatch.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_pkg_dispatch.subr
parente7f40a6a3266a5072c7a2a9a75722b7743ca3b02 (diff)
downloadmidipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.bz2
midipix_build-907bd31236a1b9ce11702cbd1ec792a07d74ab60.tar.xz
Correctly (zero-)initialise all locals.
Diffstat (limited to 'subr/ex_pkg_dispatch.subr')
-rw-r--r--subr/ex_pkg_dispatch.subr8
1 files changed, 4 insertions, 4 deletions
diff --git a/subr/ex_pkg_dispatch.subr b/subr/ex_pkg_dispatch.subr
index 21fa6733..8c774d7b 100644
--- a/subr/ex_pkg_dispatch.subr
+++ b/subr/ex_pkg_dispatch.subr
@@ -9,7 +9,7 @@
exp_pkg_dispatch() {
local _pkg_name="${1}" _tgt_name="${2}" _restart_at="${3}" \
_dispatch_fn="${4}" _stderrout_path="${5}" _pipe_path="${6}" \
- _njobs_vname="${7}" _pkg_name_uc;
+ _njobs_vname="${7}" _pkg_name_uc="";
_pkg_name_uc="$(ex_rtl_toupper "${_pkg_name}")";
if [ -n "$(ex_rtl_get_var_unsafe PKG_${_pkg_name_uc}_DISABLED)" ]; then
"${_dispatch_fn}" disabled_pkg "${_pkg_name}" "${_tgt_name}";
@@ -29,9 +29,9 @@ exp_pkg_dispatch() {
ex_pkg_dispatch() {
local _tgt_name="${1}" _restart="${2}" _restart_at="${3}" \
- _dispatch_fn="${4}" _tgt_name_uc \
- _pkg_names _njob _njobs _njobs_max \
- _pipe_path _stderrout_path _pipe_msg _script_rc;
+ _dispatch_fn="${4}" _tgt_name_uc="" \
+ _pkg_names="" _njob="" _njobs="" _njobs_max="" \
+ _pipe_path="" _stderrout_path="" _pipe_msg="" _script_rc="";
ex_rtl_fileop mkdir "${BUILD_WORKDIR}";
_pipe_path="${BUILD_WORKDIR}/build.fifo";
_tgt_name_uc="$(ex_rtl_toupper "${_tgt_name}")";