From 46d5c14b1755519a57beca9e8452e7fc08f5f038 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Sun, 4 Apr 2010 19:04:09 +0000 Subject: [PATCH] Dead assignment, found with clang. --- cmd-paste-buffer.c | 3 +-- 1 file changed, 1 insertion(+), 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)