From: Miroslav Lichvar Date: Tue, 12 Nov 2019 17:10:25 +0000 (+0100) Subject: main: don't try to open unspecified pidfile X-Git-Tag: 4.0-pre1~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=077dbd5692afd66340b98f040d0bf4bcf9cddc8c;p=thirdparty%2Fchrony.git main: don't try to open unspecified pidfile --- diff --git a/main.c b/main.c index 108aea78..e0b5c48a 100644 --- a/main.c +++ b/main.c @@ -255,6 +255,9 @@ check_pidfile(void) FILE *in; int pid, count; + if (!pidfile[0]) + return; + in = UTI_OpenFile(NULL, pidfile, NULL, 'r', 0); if (!in) return;