Skip to content

spa: allow spa_dict.items to be NULL for zero items

P V requested to merge pvir/pipewire:spa-qsort into master

For dicts with zero items, don't dereference dict->items, or give it to qsort or bsearch where passing in NULL is not allowed.


E.g. pw_properties creates spa_dicts like this, and this causes runtime warning from glibc to appear on wireplumber startup. Probably makes sense to explicitly allow such usage in spa/dict.h.

Merge request reports