=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-pipe-pane.c,v retrieving revision 1.19 retrieving revision 1.20 diff -c -r1.19 -r1.20 *** src/usr.bin/tmux/cmd-pipe-pane.c 2011/03/29 19:30:16 1.19 --- src/usr.bin/tmux/cmd-pipe-pane.c 2011/07/30 17:52:32 1.20 *************** *** 1,4 **** ! /* $OpenBSD: cmd-pipe-pane.c,v 1.19 2011/03/29 19:30:16 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-pipe-pane.c,v 1.20 2011/07/30 17:52:32 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott *************** *** 55,65 **** char *command; int old_fd, pipe_fd[2], null_fd; - if ((c = cmd_find_client(ctx, NULL)) == NULL) - return (-1); - if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL) return (-1); /* Destroy the old pipe. */ old_fd = wp->pipe_fd; --- 55,63 ---- char *command; int old_fd, pipe_fd[2], null_fd; if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL) return (-1); + c = cmd_find_client(ctx, NULL); /* Destroy the old pipe. */ old_fd = wp->pipe_fd;