diff options
author | des <des@FreeBSD.org> | 2002-05-03 12:56:29 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-05-03 12:56:29 +0000 |
commit | b12f600bff4440103dc855cc938cc66c10809ebc (patch) | |
tree | d65a2386c4a898af8c9d0e0334ecbe81eb483b19 /contrib | |
parent | 3b59856f3caaa1695d9f61c64e1e9bf5b514801f (diff) | |
download | FreeBSD-src-b12f600bff4440103dc855cc938cc66c10809ebc.zip FreeBSD-src-b12f600bff4440103dc855cc938cc66c10809ebc.tar.gz |
Initialize other to all-zeroes before using it (perforce change 10738)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/openpam/lib/openpam_configure.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/openpam/lib/openpam_configure.c b/contrib/openpam/lib/openpam_configure.c index a66f823..5c7ca18 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 <ctype.h> @@ -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 */ |