summaryrefslogtreecommitdiffstats
path: root/cmd-confirm-before.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-22 15:54:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-22 15:54:29 +0000
commit2243cfbe7559e6cf48194ff95dcd7eb6df5fe41d (patch)
treed1cf60483d7b08f01f00610c5e341d26520557c9 /cmd-confirm-before.c
parentd644e5143fbce243ddcca468a1b8a1d5bfd21b34 (diff)
Need to set clients in context before changing their reference count.
Diffstat (limited to 'cmd-confirm-before.c')
-rw-r--r--cmd-confirm-before.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c
index 5e3e4e12..f9491095 100644
--- a/cmd-confirm-before.c
+++ b/cmd-confirm-before.c
@@ -125,8 +125,7 @@ cmd_confirm_before_callback(void *data, const char *s)
return (0);
}
- ctx = cmd_get_ctx();
- ctx->curclient = c;
+ ctx = cmd_get_ctx(NULL, c);
ctx->error = key_bindings_error;
ctx->print = key_bindings_print;
ctx->info = key_bindings_info;