bugfix: initialize pid (as read from pidfile) to zero
[oweals/tinc.git] / lib / pidfile.c
index 830d3f358d6a08c65404f193b89e1e9a6066b879..426cbf392c10d903add23a1ae130fd9e4b96bfb7 100644 (file)
@@ -37,7 +37,7 @@
 pid_t read_pid (char *pidfile)
 {
   FILE *f;
-  long pid;
+  long pid = 0;
 
   if (!(f=fopen(pidfile,"r")))
     return 0;