mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
properties: fix assign + conditional expression
This commit is contained in:
parent
68dc45cc62
commit
3d08c0557f
1 changed files with 2 additions and 1 deletions
|
|
@ -252,7 +252,8 @@ static int update_string(struct pw_properties *props, const char *str, size_t si
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
/* item changed or added, apply changes later */
|
/* item changed or added, apply changes later */
|
||||||
if ((errno = -add_item(&changes, key, false, val, true) < 0)) {
|
if ((res = add_item(&changes, key, false, val, true)) < 0) {
|
||||||
|
errno = -res;
|
||||||
it[0].state = SPA_JSON_ERROR_FLAG;
|
it[0].state = SPA_JSON_ERROR_FLAG;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue