mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
re: prev commit, init j
This commit is contained in:
parent
5a83ce1567
commit
c32e182c56
@ -2695,10 +2695,10 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new,
|
|||||||
for ( o=0; old->a_vals[o].bv_val; o++ ) ;
|
for ( o=0; old->a_vals[o].bv_val; o++ ) ;
|
||||||
for ( n=0; new->a_vals[n].bv_val; n++ ) ;
|
for ( n=0; new->a_vals[n].bv_val; n++ ) ;
|
||||||
|
|
||||||
/* there MUST be both onld and new values
|
/* there MUST be both old and new values */
|
||||||
* (otherwise j is used uninitialized) */
|
|
||||||
assert( o != 0 );
|
assert( o != 0 );
|
||||||
assert( n != 0 );
|
assert( n != 0 );
|
||||||
|
j = 0;
|
||||||
|
|
||||||
adds = op->o_tmpalloc( sizeof(struct berval *) * n, op->o_tmpmemctx );
|
adds = op->o_tmpalloc( sizeof(struct berval *) * n, op->o_tmpmemctx );
|
||||||
dels = op->o_tmpalloc( sizeof(struct berval *) * o, op->o_tmpmemctx );
|
dels = op->o_tmpalloc( sizeof(struct berval *) * o, op->o_tmpmemctx );
|
||||||
|
Loading…
Reference in New Issue
Block a user