mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-30 21:37:53 -04:00
treewide: avoid unitialized spa_dict::flags
In multiple cases the `flags` member of `spa_dict` is left unitialized, so try to avoid that. For example in `fill_node_info_proplist()` it is accessed in `spa_dict_lookup_item()`. This also modifies `collect_props()` to not depend on a partially initialized `dict` parameter.
This commit is contained in:
parent
bcdc5356f2
commit
a4323c6814
4 changed files with 15 additions and 13 deletions
|
|
@ -180,8 +180,7 @@ static inline pa_proplist* pa_proplist_new_dict(const struct acp_dict *dict)
|
|||
|
||||
static inline void pa_proplist_as_dict(const pa_proplist *p, struct acp_dict *dict)
|
||||
{
|
||||
dict->n_items = pa_proplist_size(p);
|
||||
dict->items = p->array.data;
|
||||
*dict = ACP_DICT_INIT(p->array.data, pa_proplist_size(p));
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue