proplist: Return early from pa_proplist_equal() if the pointers are equal.

This commit is contained in:
Tanu Kaskinen 2009-08-24 14:22:32 +03:00
parent 179f849c08
commit 1e4e26c87f

View file

@ -690,6 +690,9 @@ int pa_proplist_equal(pa_proplist *a, pa_proplist *b) {
pa_assert(a);
pa_assert(b);
if (a == b)
return 1;
if (pa_proplist_size(a) != pa_proplist_size(b))
return 0;