diff options
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/httpauthd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/httpauthd.c b/daemon/httpauthd.c index 6921ece..0524fdd 100644 --- a/daemon/httpauthd.c +++ b/daemon/httpauthd.c @@ -343,7 +343,8 @@ int main(int argc, char* argv[]) g_daemonized = 1; } - writepid(pidfile); + if(pidfile != NULL) + writepid(pidfile); /* Handle some signals */ signal(SIGPIPE, SIG_IGN); |