diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-06 21:31:55 +0100 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2013-10-06 21:31:55 +0100 |
commit | 9e0d7bddc0cef400077f9d2d84633a8bd4eddc01 (patch) | |
tree | 00d5e5c990b16a581ca8dde65e8eddf9a03d4882 /cmd-new-session.c | |
parent | aa0a57fd5681ffbae652bebebea04e1d90ac40ce (diff) |
Don't boke when figuring out working directory from configuration file.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index 3ce24397..ad083a44 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -115,7 +115,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_q *cmdq) return (CMD_RETURN_ERROR); } cwd = fd; - } else if (c->session == NULL) + } else if (c != NULL && c->session == NULL) cwd = c->cwd; else if ((c0 = cmd_current_client(cmdq)) != NULL) cwd = c0->session->cwd; |