[pulseaudio-commits] Branch 'next' - src/modules

David Henningsson diwic at kemper.freedesktop.org
Mon Apr 29 06:53:05 PDT 2013


 src/modules/module-switch-on-port-available.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 093c30ec12c73cb0bef1869a3710ef564f228bd9
Author: poljar (Damir Jelić) <poljarinho at gmail.com>
Date:   Fri Apr 19 16:35:14 2013 +0200

    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

diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c
index 819835d..35cecea 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;



More information about the pulseaudio-commits mailing list