don't pass uninitialized pointers around

This commit is contained in:
Pierangelo Masarati 2006-03-10 12:14:58 +00:00
parent 486721d531
commit ee9c11dd08

View file

@ -997,7 +997,7 @@ void
tool_bind( LDAP *ld )
{
#ifdef LDAP_CONTROL_PASSWORDPOLICYREQUEST
LDAPControl *sctrls[2];
LDAPControl *sctrls[2] = { NULL };
if ( ppolicy ) {
LDAPControl c;
c.ldctl_oid = LDAP_CONTROL_PASSWORDPOLICYREQUEST;