mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Need to set clients in context before changing their reference count.
This commit is contained in:
		
							
								
								
									
										5
									
								
								cmd.c
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								cmd.c
									
									
									
									
									
								
							@@ -134,13 +134,16 @@ int		 cmd_find_index_offset(const char *, struct session *, int *);
 | 
			
		||||
struct window_pane *cmd_find_pane_offset(const char *, struct winlink *);
 | 
			
		||||
 | 
			
		||||
struct cmd_ctx *
 | 
			
		||||
cmd_get_ctx(void)
 | 
			
		||||
cmd_get_ctx(struct client *cmdclient, struct client *curclient)
 | 
			
		||||
{
 | 
			
		||||
	struct cmd_ctx	*ctx;
 | 
			
		||||
 | 
			
		||||
	ctx = xcalloc(1, sizeof *ctx);
 | 
			
		||||
	ctx->references = 0;
 | 
			
		||||
 | 
			
		||||
	ctx->cmdclient = cmdclient;
 | 
			
		||||
	ctx->curclient = curclient;
 | 
			
		||||
 | 
			
		||||
	cmd_ref_ctx(ctx);
 | 
			
		||||
	return (ctx);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user