mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	It is silly for cmd_list_parse to return an integer error when it could
just return NULL.
This commit is contained in:
		
							
								
								
									
										3
									
								
								cfg.c
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								cfg.c
									
									
									
									
									
								
							@@ -141,7 +141,8 @@ load_cfg(const char *path, struct client *c, struct cmdq_item *item, int quiet)
 | 
			
		||||
		if (condition == -1)
 | 
			
		||||
			continue;
 | 
			
		||||
 | 
			
		||||
		if (cmd_string_parse(p, &cmdlist, path, line, &cause1) != 0) {
 | 
			
		||||
		cmdlist = cmd_string_parse(p, path, line, &cause1);
 | 
			
		||||
		if (cmdlist == NULL) {
 | 
			
		||||
			free(buf);
 | 
			
		||||
			if (cause1 == NULL)
 | 
			
		||||
				continue;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user