summaryrefslogtreecommitdiffstats
path: root/spawn.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-03-17 12:01:28 +0000
committerThomas Adam <thomas@xteddy.org>2020-03-17 12:01:28 +0000
commit0610f66fa9c8e5ac46e796a2dbc89bb1b369d84f (patch)
tree5a1203bc453a07be05a2c652e635570adb8ee672 /spawn.c
parent71eb965dd9ef1e511dfb6d2b24196cca550e1284 (diff)
parent115bb33257ece9eec1c890cc04683227678a895f (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'spawn.c')
-rw-r--r--spawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/spawn.c b/spawn.c
index ee19cb9d..88c59100 100644
--- a/spawn.c
+++ b/spawn.c
@@ -318,7 +318,7 @@ spawn_pane(struct spawn_context *sc, char **cause)
/* Then the shell. If respawning, use the old one. */
if (~sc->flags & SPAWN_RESPAWN) {
tmp = options_get_string(s->options, "default-shell");
- if (*tmp == '\0' || areshell(tmp))
+ if (!checkshell(tmp))
tmp = _PATH_BSHELL;
free(new_wp->shell);
new_wp->shell = xstrdup(tmp);