summaryrefslogtreecommitdiffstats
path: root/job.c
diff options
context:
space:
mode:
authornicm <nicm>2018-10-28 16:10:02 +0000
committernicm <nicm>2018-10-28 16:10:02 +0000
commitd5b92ac37e3b903150237ff319dc6e86517a08b1 (patch)
treeee621f9f1385c0695c5987e66d6707643844ca84 /job.c
parent65dd7345e069753c57f10f34a5efc56339ffbeb0 (diff)
Do not printf NULL.
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 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