diff --git a/daemon/daemon.c b/daemon/daemon.c index 27365e6d2..2583aa6ea 100644 --- a/daemon/daemon.c +++ b/daemon/daemon.c @@ -85,7 +85,7 @@ main( int argc, char ** argv ) errsyslog( 1 ); } - if( 0 > savepid( pidfile ) ) + if( NULL != pidfile && 0 > savepid( pidfile ) ) exit( 1 ); atexit( exitcleanup ); sockfd = trylocksock( sockpath );