summaryrefslogtreecommitdiffstats
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authornicm <nicm>2013-10-10 12:28:38 +0000
committernicm <nicm>2013-10-10 12:28:38 +0000
commit909e1c1a86667bf71eab83ac064f038995bf5d20 (patch)
treee2a293d32eca8b5861dd31086c3e877cd34e7898 /cmd-new-window.c
parent7936ce38749a4751120c856a112ee85122df612c (diff)
Don't boke when figuring out working directory from configuration file.
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index 445f0a33..e2a01190 100644
--- a/cmd-new-window.c
+++ b/cmd-new-window.c
@@ -125,7 +125,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_ERROR);
}
cwd = fd;
- } else if (cmdq->client->session == NULL)
+ } else if (cmdq->client != NULL && cmdq->client->session == NULL)
cwd = cmdq->client->cwd;
else
cwd = s->cwd;