mirror of
https://github.com/tmux/tmux.git
synced 2025-01-12 19:39:04 +00:00
Client name can actually be NULL, so use address in that case.
This commit is contained in:
parent
d7586d3d65
commit
207789dc2d
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user