diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-05-01 07:46:31 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2010-05-01 07:46:31 +0000 |
commit | 4f573ec7108601df8584b1ab784248f20ce4c21d (patch) | |
tree | 0c3e77fa56745927033e1970f4d2d2b6073a879a /libexec | |
parent | a1f05df38aaf7fe27630ecaf6237ef691dcd0d36 (diff) |
bzero a struct to appease gcc4.
ok drahn@
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/library_subr.c | 4 |
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; |