From 04cecc7666db164fd7ae25371d6a8a0c0b4ae6de Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 18 Sep 2003 17:12:27 +0000 Subject: [PATCH] Fix pre/post attrs init bug (ITS#2728) --- clients/tools/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, "," ); -- 2.39.5