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_pkg_dispatch.subr | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'subr/ex_pkg_dispatch.subr') 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}")"; -- cgit v1.2.3