mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		@@ -96,12 +96,10 @@ cmd_load_buffer_exec(struct cmd *self, struct cmdq_item *item)
 | 
			
		||||
	const char			*bufname = args_get(args, 'b');
 | 
			
		||||
	char				*path;
 | 
			
		||||
 | 
			
		||||
	cdata = xmalloc(sizeof *cdata);
 | 
			
		||||
	cdata = xcalloc(1, sizeof *cdata);
 | 
			
		||||
	cdata->item = item;
 | 
			
		||||
	if (bufname != NULL)
 | 
			
		||||
		cdata->name = xstrdup(bufname);
 | 
			
		||||
	else
 | 
			
		||||
		cdata->name = NULL;
 | 
			
		||||
	if (args_has(args, 'w') && tc != NULL) {
 | 
			
		||||
		cdata->client = tc;
 | 
			
		||||
		cdata->client->references++;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user