]> git.sur5r.net Git - openldap/commitdiff
don't pass uninitialized pointers around
authorPierangelo Masarati <ando@openldap.org>
Fri, 10 Mar 2006 12:14:58 +0000 (12:14 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 10 Mar 2006 12:14:58 +0000 (12:14 +0000)
clients/tools/common.c

index 15f0b55b5da87db39f3c870dcb3d66e4ca779b20..84f73e91443731dfd0ec52101faa4b8eff39bb44 100644 (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;