mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	ucm: allow to specify the toplevel directory using '/' as first character in File path
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
		
							parent
							
								
									f33e596fa6
								
							
						
					
					
						commit
						bf83baa8fc
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -134,7 +134,8 @@ int uc_mgr_config_load_file(snd_use_case_mgr_t *uc_mgr,
 | 
			
		|||
	int err;
 | 
			
		||||
 | 
			
		||||
	configuration_filename(uc_mgr, filename, sizeof(filename),
 | 
			
		||||
			       uc_mgr->conf_dir_name, file, "");
 | 
			
		||||
			       file[0] == '/' ? "" : uc_mgr->conf_dir_name,
 | 
			
		||||
			       file, "");
 | 
			
		||||
	err = uc_mgr_config_load(uc_mgr->conf_format, filename, cfg);
 | 
			
		||||
	if (err < 0) {
 | 
			
		||||
		uc_error("error: failed to open file %s : %d", filename, -errno);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue