diff options
Diffstat (limited to 'src/minilogd.c')
-rw-r--r-- | src/minilogd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/minilogd.c b/src/minilogd.c index 09cd2f03..aba5e7c5 100644 --- a/src/minilogd.c +++ b/src/minilogd.c @@ -82,7 +82,8 @@ void runDaemon(int sock) { done = 0; /* Get stat info on /dev/log so we can later check to make sure we * still own it... */ - stat(_PATH_LOG,&s1); + if (stat(_PATH_LOG,&s1) != 0) + memset(&s1, '\0', sizeof(struct stat)); while (!done) { pfds.fd = sock; pfds.events = POLLIN|POLLPRI; |