summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmd-pipe-pane.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 9a4f44d3..4fa43184 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -47,11 +47,10 @@ int
cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
{
struct cmd_target_data *data = self->data;
- struct winlink *wl;
struct window_pane *wp;
int old_fd, pipe_fd[2], null_fd, mode;
- if ((wl = cmd_find_pane(ctx, data->target, NULL, &wp)) == NULL)
+ if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)
return (-1);
/* Destroy the old pipe. */