mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	load_cfg returns < 0 on error, not != 0. Problem reported by Kaushal Modi.
This commit is contained in:
		@@ -79,7 +79,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
 | 
				
			|||||||
	free(pattern);
 | 
						free(pattern);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for (i = 0; i < (u_int)g.gl_pathc; i++) {
 | 
						for (i = 0; i < (u_int)g.gl_pathc; i++) {
 | 
				
			||||||
		if (load_cfg(g.gl_pathv[i], c, item, quiet) != 0)
 | 
							if (load_cfg(g.gl_pathv[i], c, item, quiet) < 0)
 | 
				
			||||||
			retval = CMD_RETURN_ERROR;
 | 
								retval = CMD_RETURN_ERROR;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if (cfg_finished) {
 | 
						if (cfg_finished) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user