summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2010-05-01 07:46:30 +0000
committerjsg <jsg@openbsd.org>2010-05-01 07:46:30 +0000
commit8a590ec9dd61e8a6b57a41b066202f5b474bf604 (patch)
tree92c901be8aebabaaa19381563cbb1115511e4611
parenttypo; jmeltzer@ (diff)
downloadwireguard-openbsd-8a590ec9dd61e8a6b57a41b066202f5b474bf604.tar.xz
wireguard-openbsd-8a590ec9dd61e8a6b57a41b066202f5b474bf604.zip
bzero a struct to appease gcc4.
ok drahn@
-rw-r--r--libexec/ld.so/library_subr.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/library_subr.c b/libexec/ld.so/library_subr.c
index abc2894131f..8ec364bc107 100644
--- a/libexec/ld.so/library_subr.c
+++ b/libexec/ld.so/library_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: library_subr.c,v 1.28 2008/04/11 15:30:16 kurt Exp $ */
+/* $OpenBSD: library_subr.c,v 1.29 2010/05/01 07:46:30 jsg Exp $ */
/*
* Copyright (c) 2002 Dale Rahn
@@ -34,6 +34,7 @@
#include <sys/param.h>
#include <sys/queue.h>
#include <dirent.h>
+#include <string.h>
#include "archdep.h"
#include "resolve.h"
@@ -159,6 +160,7 @@ nohints:
else
searchpath = DEFAULT_PATH;
}
+ bzero(&bsod, sizeof(bsod));
pp = searchpath;
while (pp) {
path = lp;