conf: warn when match actions are missing

This commit is contained in:
Wim Taymans 2024-04-24 12:32:40 +02:00
parent 8b35b00d82
commit bdca7cb1a0

View file

@ -1270,8 +1270,12 @@ int pw_conf_match_rules(const char *str, size_t len, const char *location,
}
}
}
if (!have_match || !have_actions)
if (!have_match)
continue;
if (!have_actions) {
pw_log_warn("no actions for match rule '%.*s'", (int)len, str);
continue;
}
while (spa_json_get_string(&actions, key, sizeof(key)) > 0) {
int res, len;