]> code.delx.au - pulseaudio/commitdiff
proplist: Return early from pa_proplist_equal() if the pointers are equal.
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 24 Aug 2009 11:22:32 +0000 (14:22 +0300)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 24 Aug 2009 11:22:32 +0000 (14:22 +0300)
src/pulse/proplist.c

index 4f0d6a6de99b2cb9036e02b36244c5d9023c61ec..8b5b65380557b7efc7fcb73d35491f8899292173 100644 (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;