]> git.sur5r.net Git - openldap/commitdiff
Tweak prev commit, use BER_BVZERO
authorHoward Chu <hyc@openldap.org>
Wed, 24 Aug 2005 01:36:16 +0000 (01:36 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 24 Aug 2005 01:36:16 +0000 (01:36 +0000)
servers/slapd/overlays/valsort.c

index c5a14ffad5051d4820822be4d666bd18c71ea35c..68ad11035f90944d27f51ccc43c3cedd9bbb63ed 100644 (file)
@@ -102,6 +102,7 @@ valsort_cf_func(ConfigArgs *c) {
                                len += bv2.bv_len + 1;
                                i ^= VALSORT_WEIGHTED;
                        }
+                       BER_BVZERO( &bv );
                        enum_to_verb( sorts, i, &bv );
                        len += bv.bv_len;
                        bvret.bv_val = ch_malloc( len+1 );