diff --git a/job.c b/job.c index 37c9c453..66315bd2 100644 --- a/job.c +++ b/job.c @@ -80,7 +80,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