projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bugfix: initialize pid (as read from pidfile) to zero
[tinc]
/
lib
/
pidfile.c
diff --git
a/lib/pidfile.c
b/lib/pidfile.c
index
830d3f3
..
426cbf3
100644
(file)
--- a/
lib/pidfile.c
+++ b/
lib/pidfile.c
@@
-37,7
+37,7
@@
pid_t read_pid (char *pidfile)
{
FILE *f;
- long pid;
+ long pid
= 0
;
if (!(f=fopen(pidfile,"r")))
return 0;