mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Return false if config could not be loaded.
This commit is contained in:
		
							parent
							
								
									cdfc719494
								
							
						
					
					
						commit
						855368b67e
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -574,7 +574,13 @@ bool load_include_configs(const char *path, struct sway_config *config,
 | 
			
		|||
	char **w = p.we_wordv;
 | 
			
		||||
	size_t i;
 | 
			
		||||
	for (i = 0; i < p.we_wordc; ++i) {
 | 
			
		||||
		load_include_config(w[i], parent_dir, config, swaynag);
 | 
			
		||||
		bool found = load_include_config(w[i], parent_dir, config, swaynag);
 | 
			
		||||
		if (!found) {
 | 
			
		||||
			wordfree(&p);
 | 
			
		||||
			free(parent_path);
 | 
			
		||||
			free(wd);
 | 
			
		||||
			return false;
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
	free(parent_path);
 | 
			
		||||
	wordfree(&p);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue