]> git.sur5r.net Git - openldap/commitdiff
Fix pre/post attrs init bug (ITS#2728)
authorKurt Zeilenga <kurt@openldap.org>
Thu, 18 Sep 2003 17:12:27 +0000 (17:12 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 18 Sep 2003 17:12:27 +0000 (17:12 +0000)
clients/tools/common.c

index 1266f3010f6352e61bb4d0002b4fd0661aad6ff8..ee427460f97be93b7f500694df710b0a0aeb1581 100644 (file)
@@ -820,7 +820,7 @@ tool_server_controls( LDAP *ld, LDAPControl *extra_c, int count )
        if ( preread ) {
                char berbuf[LBER_ELEMENT_SIZEOF];
                BerElement *ber = (BerElement *)berbuf;
-               char **attrs;
+               char **attrs = NULL;
 
                if( preread_attrs ) {
                        attrs = ldap_str2charray( preread_attrs, "," );
@@ -850,7 +850,7 @@ tool_server_controls( LDAP *ld, LDAPControl *extra_c, int count )
        if ( postread ) {
                char berbuf[LBER_ELEMENT_SIZEOF];
                BerElement *ber = (BerElement *)berbuf;
-               char **attrs;
+               char **attrs = NULL;
 
                if( postread_attrs ) {
                        attrs = ldap_str2charray( postread_attrs, "," );