Dead assignment, found with clang.

This commit is contained in:
Nicholas Marriott 2010-04-04 19:04:09 +00:00
parent b02cd35354
commit 46d5c14b17

View File

@ -44,12 +44,11 @@ int
cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx) cmd_paste_buffer_exec(struct cmd *self, struct cmd_ctx *ctx)
{ {
struct cmd_buffer_data *data = self->data; struct cmd_buffer_data *data = self->data;
struct winlink *wl;
struct window_pane *wp; struct window_pane *wp;
struct session *s; struct session *s;
struct paste_buffer *pb; 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); return (-1);
if (data->buffer == -1) if (data->buffer == -1)