summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2018-10-28 16:10:03 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2018-10-28 16:10:03 +0000
commita9e3a4fd23e7d0e319d4ed68b83a108830e84b47 (patch)
tree07bcc45184ce783da240758ea7c211d446eb3705 /usr.bin/tmux
parentc3e38951a46b1c4f890ac4792876ddfbfc310bc9 (diff)
Do not printf NULL.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/job.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/job.c b/usr.bin/tmux/job.c
index 7c09420396e..edc06e141d3 100644
--- a/usr.bin/tmux/job.c
+++ b/usr.bin/tmux/job.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: job.c,v 1.52 2018/09/27 07:43:18 nicm Exp $ */
+/* $OpenBSD: job.c,v 1.53 2018/10/28 16:10:02 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -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