mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	Fix segfault with invalid meter plugin option
snd_pcm_meter_add_scope_conf() may cause a segfault when pcm_scope_type isn't defined. Initialize type_conf properly to avoid it. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									cb1fd837d9
								
							
						
					
					
						commit
						73ddcda842
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -603,7 +603,7 @@ static int snd_pcm_meter_add_scope_conf(snd_pcm_t *pcm, const char *name,
 | 
			
		|||
	snd_config_iterator_t i, next;
 | 
			
		||||
	const char *id;
 | 
			
		||||
	const char *lib = NULL, *open_name = NULL, *str = NULL;
 | 
			
		||||
	snd_config_t *c, *type_conf;
 | 
			
		||||
	snd_config_t *c, *type_conf = NULL;
 | 
			
		||||
	int (*open_func)(snd_pcm_t *, const char *,
 | 
			
		||||
			 snd_config_t *, snd_config_t *) = NULL;
 | 
			
		||||
	snd_pcm_meter_t *meter = pcm->private_data;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue