mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-17 07:00:03 -05:00
conf: fix regex matching
Reset skip to 0 for each value or else we won't be able to match 2 values when using regex. Fixes #3528
This commit is contained in:
parent
93d27cb26f
commit
9726f53e60
1 changed files with 2 additions and 1 deletions
|
|
@ -599,10 +599,11 @@ static bool find_match(struct spa_json *arr, const struct spa_dict *props)
|
|||
char key[256], val[1024];
|
||||
const char *str, *value;
|
||||
int match = 0, fail = 0;
|
||||
int len, skip = 0;
|
||||
int len;
|
||||
|
||||
while (spa_json_get_string(&it[0], key, sizeof(key)) > 0) {
|
||||
bool success = false;
|
||||
int skip = 0;
|
||||
|
||||
if ((len = spa_json_next(&it[0], &value)) <= 0)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue