main: don't try to open unspecified pidfile

This commit is contained in:
Miroslav Lichvar 2019-11-12 18:10:25 +01:00
parent e18903a6b5
commit 077dbd5692

3
main.c
View file

@ -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;