mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	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:
		
							parent
							
								
									55571f8999
								
							
						
					
					
						commit
						f8101279bb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue