Initialize other to all-zeroes before using it.
git-svn-id: svn+ssh://svn.openpam.org/svn/openpam/trunk@142 185d5e19-27fe-0310-9dcf-9bff6b9f3609
This commit is contained in:
parent
f3d250644a
commit
082364c255
|
@ -31,7 +31,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $P4: //depot/projects/openpam/lib/openpam_configure.c#2 $
|
* $P4: //depot/projects/openpam/lib/openpam_configure.c#3 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
@ -257,7 +257,7 @@ int
|
||||||
openpam_configure(pam_handle_t *pamh,
|
openpam_configure(pam_handle_t *pamh,
|
||||||
const char *service)
|
const char *service)
|
||||||
{
|
{
|
||||||
pam_chain_t *other[PAM_NUM_CHAINS];
|
pam_chain_t *other[PAM_NUM_CHAINS] = { 0 };
|
||||||
int i, n, r;
|
int i, n, r;
|
||||||
|
|
||||||
/* try own configuration first */
|
/* try own configuration first */
|
||||||
|
|
Loading…
Reference in New Issue