mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-04 21:18:03 +02:00
lib: assert non-NULL input for wp_spa_pod_equal
It should not be called with NULL values or it'll crash.
This commit is contained in:
parent
7d4369c1af
commit
3239c03e2f
1 changed files with 3 additions and 0 deletions
|
|
@ -1542,6 +1542,9 @@ wp_spa_pod_set_pod (WpSpaPod *self, WpSpaPod *pod)
|
|||
gboolean
|
||||
wp_spa_pod_equal (WpSpaPod *self, WpSpaPod *pod)
|
||||
{
|
||||
g_return_val_if_fail (self != NULL, FALSE);
|
||||
g_return_val_if_fail (pod != NULL, FALSE);
|
||||
|
||||
if (self->type != pod->type)
|
||||
return FALSE;
|
||||
if (SPA_POD_TYPE (self->pod) != SPA_POD_TYPE (pod->pod))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue