mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	namehint: correct the @args check
BugLink: https://github.com/alsa-project/alsa-plugins/issues/3 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									ebdd2b6cdb
								
							
						
					
					
						commit
						5ee5ef31b5
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -348,6 +348,12 @@ static int try_config(snd_config_t *config,
 | 
			
		|||
		goto __cleanup;
 | 
			
		||||
	if (snd_config_search(res, "@args", &cfg) >= 0) {
 | 
			
		||||
		snd_config_for_each(i, next, cfg) {
 | 
			
		||||
			/* skip the argument list */
 | 
			
		||||
			snd_config_get_id(snd_config_iterator_entry(i), &str);
 | 
			
		||||
			while (*str && *str >= '0' && *str <= '9') str++;
 | 
			
		||||
			if (*str == '\0')
 | 
			
		||||
				continue;
 | 
			
		||||
			/* the argument definition must have the default */
 | 
			
		||||
			if (snd_config_search(snd_config_iterator_entry(i),
 | 
			
		||||
					      "default", NULL) < 0) {
 | 
			
		||||
				err = -EINVAL;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue