mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Client name can actually be NULL, so use address in that case.
This commit is contained in:
		@@ -36,7 +36,10 @@ cmdq_name(struct client *c)
 | 
			
		||||
 | 
			
		||||
	if (c == NULL)
 | 
			
		||||
		return ("<global>");
 | 
			
		||||
	xsnprintf(s, sizeof s, "<%s>", c->name);
 | 
			
		||||
	if (c->name != NULL)
 | 
			
		||||
		xsnprintf(s, sizeof s, "<%s>", c->name);
 | 
			
		||||
	else
 | 
			
		||||
		xsnprintf(s, sizeof s, "<%p>", c);
 | 
			
		||||
	return (s);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user