]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/sets.c
zap charray
[openldap] / servers / slapd / sets.c
index b223ca3250243a24672df9c8bddfaa4922e6f959..9d01b9c6717f7bd527531b9b4bc4c7fe8af210e7 100644 (file)
@@ -119,9 +119,12 @@ set_chase (SLAP_SET_GATHER gatherer,
 {
        BerVarray vals, nset;
        char attrstr[32];
-       struct berval bv = {attr->bv_len, attrstr};
+       struct berval bv;
        int i;
 
+       bv.bv_len = attr->bv_len;
+       bv.bv_val = attrstr;
+
        if (set == NULL)
                return(ch_calloc(1, sizeof(struct berval)));