summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2018-10-28 18:02:36 +0000
committerThomas Adam <thomas@xteddy.org>2018-10-28 18:02:36 +0000
commitddffda4da55e2d4040c981bfb5257c4f7281000f (patch)
tree726c93ec743be2b14a214297702f2b343f34dff0 /job.c
parent0a54a07909ec1255332792fc880e73f19d3f5e53 (diff)
parentd5b92ac37e3b903150237ff319dc6e86517a08b1 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'job.c')
-rw-r--r--job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/job.c b/job.c
index 9faf7de0..8a463a7d 100644
--- a/job.c
+++ b/job.c
@@ -79,7 +79,7 @@ job_run(const char *cmd, struct session *s, const char *cwd,
if (socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, out) != 0)
return (NULL);
- log_debug("%s: cmd=%s, cwd=%s", __func__, cmd, cwd);
+ log_debug("%s: cmd=%s, cwd=%s", __func__, cmd, cwd == NULL ? "" : cwd);
/*
* Do not set TERM during .tmux.conf, it is nice to be able to use