aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--passt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/passt.c b/passt.c
index c0d86a5..3e45095 100644
--- a/passt.c
+++ b/passt.c
@@ -248,7 +248,7 @@ static void pid_file(struct ctx *c) {
char pid_buf[12];
int pid_fd, n;
- if (!c->pid_file)
+ if (!*c->pid_file)
return;
pid_fd = open(c->pid_file, O_CREAT | O_WRONLY);