mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-01-10 13:30:13 +01:00
common-utils: avoid crashing when a rules section is not defined in the config
This commit is contained in:
parent
ac0d8ee4a8
commit
cb243eea6d
1 changed files with 4 additions and 0 deletions
|
|
@ -73,6 +73,10 @@ end
|
|||
|
||||
function cutils.evaluateRulesApplyProperties (properties, name)
|
||||
local section = Conf.get_section (name)
|
||||
if not section then
|
||||
return
|
||||
end
|
||||
|
||||
local matched, mprops = JsonUtils.match_rules_update_properties (
|
||||
section, properties)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue