htparser: Fixed pidfile initialization bug.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 15 May 2021 01:33:27 +0000 (03:33 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 15 May 2021 01:33:27 +0000 (03:33 +0200)
src/htparser.c

index b7435b9..e281abd 100644 (file)
@@ -607,7 +607,7 @@ int main(int argc, char **argv)
     struct passwd *pwent;
     
     daemonize = usesyslog = 0;
     struct passwd *pwent;
     
     daemonize = usesyslog = 0;
-    root = NULL;
+    root = pidfile = NULL;
     pwent = NULL;
     while((c = getopt(argc, argv, "+hSfu:r:p:")) >= 0) {
        switch(c) {
     pwent = NULL;
     while((c = getopt(argc, argv, "+hSfu:r:p:")) >= 0) {
        switch(c) {