Commit dcd5c749 authored by Howard Chu's avatar Howard Chu
Browse files

Drop unnecessary memset()s

parent cd35516b
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment