From d5b92ac37e3b903150237ff319dc6e86517a08b1 Mon Sep 17 00:00:00 2001 From: nicm Date: Sun, 28 Oct 2018 16:10:02 +0000 Subject: [PATCH] Do not printf NULL. --- job.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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