summaryrefslogtreecommitdiffstats
path: root/cmd-has-session.c
diff options
context:
space:
mode:
authornicm <nicm>2007-11-13 09:53:46 +0000
committernicm <nicm>2007-11-13 09:53:46 +0000
commit7cfa94eec2ebd365247faac72c734658a3e4a9e8 (patch)
treea17292f103ea41b1836082f14ee602632d3d232e /cmd-has-session.c
parentda21ae1d3cda0d8205e7abdb625b47540c85a3b5 (diff)
downloadtmux-old-7cfa94eec2ebd365247faac72c734658a3e4a9e8.tar.gz
tmux-old-7cfa94eec2ebd365247faac72c734658a3e4a9e8.tar.bz2
tmux-old-7cfa94eec2ebd365247faac72c734658a3e4a9e8.zip
Use ctx->client/ctx->session inline instead of temporary variables which were
being reused and causing confusion and problems.
Diffstat (limited to 'cmd-has-session.c')
-rw-r--r--cmd-has-session.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-has-session.c b/cmd-has-session.c
index b84df9aa..fa7a1490 100644
--- a/cmd-has-session.c
+++ b/cmd-has-session.c
@@ -44,8 +44,6 @@ const struct cmd_entry cmd_has_session_entry = {
void
cmd_has_session_exec(unused void *ptr, struct cmd_ctx *ctx)
{
- struct client *c = ctx->client;
-
if (!(ctx->flags & CMD_KEY))
- server_write_client(c, MSG_EXIT, NULL, 0);
+ server_write_client(ctx->client, MSG_EXIT, NULL, 0);
}