mirror of
				https://github.com/tmux/tmux.git
				synced 2025-10-26 12:27:15 +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>"); | ||||
| 	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
	 nicm
					nicm