mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 18:26:31 +01:00
alsa-info.sh: declare variables separately from the assign (coverity)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
247d9e336d
commit
3d35bce271
1 changed files with 4 additions and 2 deletions
|
@ -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)'
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue