summaryrefslogtreecommitdiffstats
path: root/cmd-paste-buffer.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-04-04 19:04:09 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-04-04 19:04:09 +0000
commit46d5c14b1755519a57beca9e8452e7fc08f5f038 (patch)
tree9a1fc6fa946c8b0f2d1863f130616955551ad691 /cmd-paste-buffer.c
parentb02cd353543cb47ddaf079bd42f94696703f2667 (diff)
Dead assignment, found with clang.
Diffstat (limited to 'cmd-paste-buffer.c')
-rw-r--r--cmd-paste-buffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-paste-buffer.c b/cmd-paste-buffer.c
index 46934629..e4d97f44 100644
--- a/cmd-paste-buffer.c
+++ b/cmd-paste-buffer.c
@@ -44,12 +44,11 @@ int
cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct cmd_buffer_data *data = self->data;
- struct winlink *wl;
struct window_pane *wp;
struct session *s;
struct paste_buffer *pb;
- if ((wl = cmd_find_pane(ctx, data->target, &s, &wp)) == NULL)
+ if (cmd_find_pane(ctx, data->target, &s, &wp) == NULL)
return (-1);
if (data->buffer == -1)