summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-buffer.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-04-09 13:52:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-04-09 13:52:33 +0000
commit031ffaa1243878acb63f017e435a774655fa5b08 (patch)
tree154b20c37f941531b149f8573fdbe7eab74e95cb /usr.bin/tmux/window-buffer.c
parent08cbf972268ed30e723eb3162587b6c9c59a7911 (diff)
Some unnecessary assignments and unused variables.
Diffstat (limited to 'usr.bin/tmux/window-buffer.c')
-rw-r--r--usr.bin/tmux/window-buffer.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/window-buffer.c b/usr.bin/tmux/window-buffer.c
index fabfb1981f3..0398b3799c3 100644
--- a/usr.bin/tmux/window-buffer.c
+++ b/usr.bin/tmux/window-buffer.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: window-buffer.c,v 1.25 2020/02/11 07:01:09 nicm Exp $ */
+/* $OpenBSD: window-buffer.c,v 1.26 2020/04/09 13:52:31 nicm Exp $ */
/*
* Copyright (c) 2017 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -348,9 +348,8 @@ window_buffer_do_paste(void *modedata, void *itemdata, struct client *c,
{
struct window_buffer_modedata *data = modedata;
struct window_buffer_itemdata *item = itemdata;
- struct paste_buffer *pb;
- if ((pb = paste_get_name(item->name)) != NULL)
+ if (paste_get_name(item->name) != NULL)
mode_tree_run_command(c, NULL, data->command, item->name);
}