From 1e4e26c87fc4f74c9805cc084c88783558acb418 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Mon, 24 Aug 2009 14:22:32 +0300 Subject: proplist: Return early from pa_proplist_equal() if the pointers are equal. --- src/pulse/proplist.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pulse/proplist.c') diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c index 4f0d6a6d..8b5b6538 100644 --- a/src/pulse/proplist.c +++ b/src/pulse/proplist.c @@ -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; -- cgit