summaryrefslogtreecommitdiff
path: root/sbin/iked/config.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/config.c
parent4223854992d4ff2b14bfd60427ca3303dbea7c43 (diff)
Silence unitialized variable warnings.
Diffstat (limited to 'sbin/iked/config.c')
-rw-r--r--sbin/iked/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/config.c b/sbin/iked/config.c
index e745da5b22b..878be2a3715 100644
--- a/sbin/iked/config.c
+++ b/sbin/iked/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.83 2021/11/24 20:48:00 tobhe Exp $ */
+/* $OpenBSD: config.c,v 1.84 2021/11/25 18:28:51 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -593,7 +593,7 @@ int
config_getsocket(struct iked *env, struct imsg *imsg,
void (*cb)(int, short, void *))
{
- struct iked_socket *sock, **sock0, **sock1;
+ struct iked_socket *sock, **sock0 = NULL, **sock1 = NULL;
log_debug("%s: received socket fd %d", __func__, imsg->fd);