Initialize other to all-zeroes before using it (perforce change 10738)

This commit is contained in:
Dag-Erling Smørgrav 2002-05-03 12:56:29 +00:00
parent ac7e3b9d95
commit c495750164
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/vendor/openpam/dist/; revision=95978

View File

@ -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 */