From dcd5c749144d327a75b031b68a1fca80407551ad Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 1 Jan 2007 06:46:47 +0000 Subject: [PATCH] Drop unnecessary memset()s --- servers/slapd/ad.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/ad.c b/servers/slapd/ad.c index 72808e851b..70e1412c25 100644 --- a/servers/slapd/ad.c +++ b/servers/slapd/ad.c @@ -175,8 +175,9 @@ int slap_bv2ad( } /* find valid base attribute type; parse in place */ - memset( &desc, 0, sizeof( desc ) ); desc.ad_cname = *bv; + desc.ad_flags = 0; + BER_BVZERO( &desc.ad_tags ); name = bv->bv_val; options = ber_bvchr( bv, ';' ); if ( options != NULL && (unsigned) ( options - name ) < bv->bv_len ) { @@ -200,7 +201,6 @@ int slap_bv2ad( * parse options in place */ ntags = 0; - memset( tags, 0, sizeof( tags )); tagslen = 0; optn = bv->bv_val + bv->bv_len; -- 2.39.5