From: Kurt Zeilenga Date: Thu, 18 Sep 2003 17:12:27 +0000 (+0000) Subject: Fix pre/post attrs init bug (ITS#2728) X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~707 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=04cecc7666db164fd7ae25371d6a8a0c0b4ae6de;p=openldap Fix pre/post attrs init bug (ITS#2728) --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 1266f3010f..ee427460f9 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -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, "," );