summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/pidfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/pidfile.c b/lib/util/pidfile.c
index 88463711f9..1b382d1217 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) {