diff --git a/lib/util/pidfile.c b/lib/util/pidfile.c index 88463711f94..1b382d12175 100644 --- a/lib/util/pidfile.c +++ b/lib/util/pidfile.c @@ -36,7 +36,7 @@ pid_t pidfile_pid(const char *piddir, const char *name) { int fd; char pidstr[20]; - pid_t ret; + pid_t ret = -1; char *pidFile; if (asprintf(&pidFile, "%s/%s.pid", piddir, name) < 0) {