]> code.delx.au - pulseaudio/commitdiff
switch-on-port-available: Silence gcc warning.
authorpoljar (Damir Jelić) <poljarinho@gmail.com>
Fri, 19 Apr 2013 14:35:14 +0000 (16:35 +0200)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Mon, 3 Jun 2013 19:08:40 +0000 (00:38 +0530)
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

index 819835dc896f095dcfe2581c0557d6f993ea9010..35cecea85abff62e76211821eec1c91953df7922 100644 (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;