projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
179f849
)
proplist: Return early from pa_proplist_equal() if the pointers are equal.
author
Tanu Kaskinen
<tanuk@iki.fi>
Mon, 24 Aug 2009 11:22:32 +0000
(14:22 +0300)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Mon, 24 Aug 2009 11:22:32 +0000
(14:22 +0300)
src/pulse/proplist.c
patch
|
blob
|
history
diff --git
a/src/pulse/proplist.c
b/src/pulse/proplist.c
index
4f0d6a6
..
8b5b653
100644
(file)
--- 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;