From b12f600bff4440103dc855cc938cc66c10809ebc Mon Sep 17 00:00:00 2001 From: des Date: Fri, 3 May 2002 12:56:29 +0000 Subject: [PATCH] Initialize other to all-zeroes before using it (perforce change 10738) --- contrib/openpam/lib/openpam_configure.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/openpam/lib/openpam_configure.c b/contrib/openpam/lib/openpam_configure.c index a66f8239b76a..5c7ca18275ad 100644 --- a/contrib/openpam/lib/openpam_configure.c +++ b/contrib/openpam/lib/openpam_configure.c @@ -31,7 +31,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $P4: //depot/projects/openpam/lib/openpam_configure.c#2 $ + * $P4: //depot/projects/openpam/lib/openpam_configure.c#3 $ */ #include @@ -257,7 +257,7 @@ int openpam_configure(pam_handle_t *pamh, const char *service) { - pam_chain_t *other[PAM_NUM_CHAINS]; + pam_chain_t *other[PAM_NUM_CHAINS] = { 0 }; int i, n, r; /* try own configuration first */