diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-19 02:44:54 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2015-01-19 02:44:54 +0000 |
commit | 2ef8e2d25eeb98fa3a511bb818f292765ac9db89 (patch) | |
tree | 104c7fe3bce52a5c7d98b287b394c8f84d83817f | |
parent | a3cd216d0fe4ac6cfef61806603ccb01b89d5449 (diff) |
gcc does not understand that the loop conditionally sets bsod before
using it, so it warns... Copy the warning silencing code from the
same function in ../ld.so
-rw-r--r-- | libexec/ld.so/ldconfig/library.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ld.so/ldconfig/library.c b/libexec/ld.so/ldconfig/library.c index 4b1ff1059e7..e42c0c7def1 100644 --- a/libexec/ld.so/ldconfig/library.c +++ b/libexec/ld.so/ldconfig/library.c @@ -1,4 +1,4 @@ -/* $OpenBSD: library.c,v 1.7 2015/01/16 16:18:07 deraadt Exp $ */ +/* $OpenBSD: library.c,v 1.8 2015/01/19 02:44:53 deraadt Exp $ */ /* * Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com> * @@ -199,6 +199,7 @@ nohints: else searchpath = _dl_default_path; } + memset(&bsod, 0, sizeof(bsod)); for (pp = searchpath; *pp != NULL; pp++) { if ((dd = opendir(*pp)) != NULL) { match = 0; |