summaryrefslogtreecommitdiff
path: root/sbin/iked/iked.c
diff options
context:
space:
mode:
authorTobias Heider <tobhe@cvs.openbsd.org>2021-11-25 18:28:52 +0000
committerTobias Heider <tobhe@cvs.openbsd.org>2021-11-25 18:28:52 +0000
commit0a4527d8a70bb05c53a11337f0a45f9afe093589 (patch)
tree8b60faa337df084a07413c0e9da2287d03b249a2 /sbin/iked/iked.c
parent4223854992d4ff2b14bfd60427ca3303dbea7c43 (diff)
Silence unitialized variable warnings.
Diffstat (limited to 'sbin/iked/iked.c')
-rw-r--r--sbin/iked/iked.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/iked.c b/sbin/iked/iked.c
index 4cd1320822d..fa7fd3d5c6a 100644
--- a/sbin/iked/iked.c
+++ b/sbin/iked/iked.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: iked.c,v 1.58 2021/09/01 15:30:06 tobhe Exp $ */
+/* $OpenBSD: iked.c,v 1.59 2021/11/25 18:28:51 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -350,7 +350,7 @@ parent_sig_handler(int sig, short event, void *arg)
/* FALLTHROUGH */
case SIGCHLD:
do {
- int len;
+ int len = 0;
pid = waitpid(-1, &status, WNOHANG);
if (pid <= 0)