summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-paste-buffer.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2010-04-04 19:04:09 +0000
committernicm <nicm@openbsd.org>2010-04-04 19:04:09 +0000
commit9ce50470aebc2dd93e30ff8ff3275f91c4895ea3 (patch)
tree7e4ff8e44dba1cd94b27beb6645edfe6d1ff054b /usr.bin/tmux/cmd-paste-buffer.c
parentRun job commands explicitly in the global enviroment (which can be (diff)
downloadwireguard-openbsd-9ce50470aebc2dd93e30ff8ff3275f91c4895ea3.tar.xz
wireguard-openbsd-9ce50470aebc2dd93e30ff8ff3275f91c4895ea3.zip
Dead assignment, found with clang.
Diffstat (limited to 'usr.bin/tmux/cmd-paste-buffer.c')
-rw-r--r--usr.bin/tmux/cmd-paste-buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-paste-buffer.c b/usr.bin/tmux/cmd-paste-buffer.c
index 74ff479a97e..88282ca171e 100644
--- a/usr.bin/tmux/cmd-paste-buffer.c
+++ b/usr.bin/tmux/cmd-paste-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-paste-buffer.c,v 1.11 2010/03/22 19:13:28 nicm Exp $ */
+/* $OpenBSD: cmd-paste-buffer.c,v 1.12 2010/04/04 19:04:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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)