From 643eb5bae2c58246657cdfebe19002da2cee292e Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sat, 14 Dec 2013 09:29:24 +0200 Subject: [PATCH] bluetooth: Fix profile priority comparison BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=72414 --- src/modules/bluetooth/module-bluetooth-policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/bluetooth/module-bluetooth-policy.c b/src/modules/bluetooth/module-bluetooth-policy.c index a5e99855..06f9f1ca 100644 --- a/src/modules/bluetooth/module-bluetooth-policy.c +++ b/src/modules/bluetooth/module-bluetooth-policy.c @@ -147,7 +147,7 @@ static pa_card_profile *find_best_profile(pa_card *card) { if (result == NULL || (profile->available == PA_AVAILABLE_YES && result->available == PA_AVAILABLE_UNKNOWN) || - (profile->available == result->available && profile->priority > profile->priority)) + (profile->available == result->available && profile->priority > result->priority)) result = profile; } -- 2.39.2