mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Do not use NULL client when source-file finishes, GitHub issue 2707.
This commit is contained in:
		@@ -68,7 +68,9 @@ cmd_source_file_complete(struct client *c, struct cmd_source_file_data *cdata)
 | 
				
			|||||||
	struct cmdq_item	*new_item;
 | 
						struct cmdq_item	*new_item;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (cfg_finished) {
 | 
						if (cfg_finished) {
 | 
				
			||||||
		if (cdata->retval == CMD_RETURN_ERROR && c->session == NULL)
 | 
							if (cdata->retval == CMD_RETURN_ERROR &&
 | 
				
			||||||
 | 
							    c != NULL &&
 | 
				
			||||||
 | 
							    c->session == NULL)
 | 
				
			||||||
			c->retval = 1;
 | 
								c->retval = 1;
 | 
				
			||||||
		new_item = cmdq_get_callback(cmd_source_file_complete_cb, NULL);
 | 
							new_item = cmdq_get_callback(cmd_source_file_complete_cb, NULL);
 | 
				
			||||||
		cmdq_insert_after(cdata->after, new_item);
 | 
							cmdq_insert_after(cdata->after, new_item);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user