From f8101279bb48a9b5cd2f9aa9b2d5020984312433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?poljar=20=28Damir=20Jeli=C4=87=29?= Date: Fri, 19 Apr 2013 16:35:14 +0200 Subject: [PATCH] switch-on-port-available: Silence gcc warning. This silences this gcc warning: module-switch-on-port-available.c:111:12: warning: 'good' may be used uninitialized in this function --- src/modules/module-switch-on-port-available.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c index 819835dc8..35cecea85 100644 --- a/src/modules/module-switch-on-port-available.c +++ b/src/modules/module-switch-on-port-available.c @@ -94,7 +94,7 @@ static int try_to_switch_profile(pa_device_port *port) { pa_log_debug("Finding best profile"); PA_HASHMAP_FOREACH(profile, port->profiles, state) { - bool good; + bool good = false; if (best_profile && best_profile->priority >= profile->priority) continue;