summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-split-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-07-22 21:34:36 +0000
committernicm <nicm@openbsd.org>2009-07-22 21:34:36 +0000
commitbb3d8bb15e9766206cfd1665237b3c5325a15d02 (patch)
tree5a5d04c845af7cd6c8949cb045d783b055e02084 /usr.bin/tmux/cmd-split-window.c
parentAdd big-endian platform support to sis(4). Tested to not break anything on (diff)
downloadwireguard-openbsd-bb3d8bb15e9766206cfd1665237b3c5325a15d02.tar.xz
wireguard-openbsd-bb3d8bb15e9766206cfd1665237b3c5325a15d02.zip
window_add_pane cannot fail, so remove the unused cause argument and don't
bother to check for a NULL return.
Diffstat (limited to 'usr.bin/tmux/cmd-split-window.c')
-rw-r--r--usr.bin/tmux/cmd-split-window.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-split-window.c b/usr.bin/tmux/cmd-split-window.c
index 2d7787ab933..ad27dd08ec0 100644
--- a/usr.bin/tmux/cmd-split-window.c
+++ b/usr.bin/tmux/cmd-split-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-split-window.c,v 1.5 2009/07/19 13:21:40 nicm Exp $ */
+/* $OpenBSD: cmd-split-window.c,v 1.6 2009/07/22 21:34:36 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -184,9 +184,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx)
if (data->flag_horizontal)
type = LAYOUT_LEFTRIGHT;
- wp = window_add_pane(w, hlimit, &cause);
- if (wp == NULL)
- goto error;
+ wp = window_add_pane(w, hlimit);
if (window_pane_spawn(wp, cmd, cwd, env, &cause) != 0)
goto error;
if (layout_split_pane(w->active, type, size, wp) != 0) {