From a7a0e2072e7c5fb22cd8319bd8a5701a1bd711ac Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 24 Apr 2024 12:32:40 +0200 Subject: [PATCH] conf: warn when match actions are missing --- src/pipewire/conf.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pipewire/conf.c b/src/pipewire/conf.c index 2ef841778..26b02d1e5 100644 --- a/src/pipewire/conf.c +++ b/src/pipewire/conf.c @@ -1151,8 +1151,12 @@ int pw_conf_match_rules(const char *str, size_t len, const char *location, break; } } - 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;