mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
proplist: Return early from pa_proplist_equal() if the pointers are equal.
This commit is contained in:
parent
179f849c08
commit
1e4e26c87f
1 changed files with 3 additions and 0 deletions
|
|
@ -690,6 +690,9 @@ int pa_proplist_equal(pa_proplist *a, pa_proplist *b) {
|
||||||
pa_assert(a);
|
pa_assert(a);
|
||||||
pa_assert(b);
|
pa_assert(b);
|
||||||
|
|
||||||
|
if (a == b)
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (pa_proplist_size(a) != pa_proplist_size(b))
|
if (pa_proplist_size(a) != pa_proplist_size(b))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue