]> git.sur5r.net Git - openldap/commitdiff
Use of bzero is not portable
authorHoward Chu <hyc@openldap.org>
Thu, 16 Dec 2004 19:52:38 +0000 (19:52 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Dec 2004 19:52:38 +0000 (19:52 +0000)
servers/slapd/component.c

index ced9d9baea81155751c2fe3570d1d622269bfd40..6166db0c071895b6348c39b28b010981d6c6c433 100644 (file)
@@ -263,8 +263,7 @@ dup_comp_filter (
        ComponentFilter **out_f )
 {
        int     rc;
-       ComponentFilter dup_f;
-       bzero( &dup_f, sizeof(dup_f));
+       ComponentFilter dup_f = {0};
 
        if ( !in_f ) return LDAP_PROTOCOL_ERROR;