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
This commit is contained in:
poljar (Damir Jelić) 2013-04-19 16:35:14 +02:00 committed by Arun Raghavan
parent 55571f8999
commit f8101279bb

View file

@ -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;