aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-10-06 21:31:55 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-10-06 21:31:55 +0100
commit9e0d7bddc0cef400077f9d2d84633a8bd4eddc01 (patch)
tree00d5e5c990b16a581ca8dde65e8eddf9a03d4882 /cmd-new-window.c
parentaa0a57fd5681ffbae652bebebea04e1d90ac40ce (diff)
downloadrtmux-9e0d7bddc0cef400077f9d2d84633a8bd4eddc01.tar.gz
rtmux-9e0d7bddc0cef400077f9d2d84633a8bd4eddc01.tar.bz2
rtmux-9e0d7bddc0cef400077f9d2d84633a8bd4eddc01.zip
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 f6a925b1..5c2cbe40 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;