From: Jaroslav Kysela Date: Tue, 9 Jun 2020 08:24:38 +0000 (+0200) Subject: alsa-info.sh: declare variables separately from the assign (coverity) X-Git-Tag: v1.2.4~27 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=3d35bce271e5e5734e8bd67621ff8d3903ff4ad1;p=alsa-utils.git alsa-info.sh: declare variables separately from the assign (coverity) Signed-off-by: Jaroslav Kysela --- diff --git a/alsa-info/alsa-info.sh b/alsa-info/alsa-info.sh index c184915..daffee8 100755 --- a/alsa-info/alsa-info.sh +++ b/alsa-info/alsa-info.sh @@ -239,8 +239,10 @@ withdmesg() { } withpackages() { - local RPM="$(which rpmquery 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null)" - local DPKG="$(which dpkg 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null)" + local RPM + local DPKG + RPM="$(which rpmquery 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null)" + DPKG="$(which dpkg 2>/dev/null | sed 's|^[^/]*||' 2>/dev/null)" [ -n "$RPM$DPKG" ] || return local PATTERN='(alsa-(lib|oss|plugins|tools|(topology|ucm)-conf|utils)|libalsa|tinycompress)' {