From 59f7a78441b2478aa575e701be707e443e8d52d3 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 7 Jan 2017 07:01:25 +0100 Subject: [PATCH] pidfile: Always initialize global variables Always initialize global variables, even though they cannot be used in current code paths without being initialized at runtime. Signed-off-by: Joachim Nilsson --- pidfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pidfile.c b/pidfile.c index 58cc4c1..51c4a17 100644 --- a/pidfile.c +++ b/pidfile.c @@ -42,7 +42,7 @@ #ifndef pidfile static char *pidfile_path = NULL; -static pid_t pidfile_pid; +static pid_t pidfile_pid = 0; static void pidfile_cleanup(void);