re: prev commit, init j

This commit is contained in:
Howard Chu 2007-09-09 14:25:34 +00:00
parent 5a83ce1567
commit c32e182c56

View File

@ -2695,10 +2695,10 @@ attr_cmp( Operation *op, Attribute *old, Attribute *new,
for ( o=0; old->a_vals[o].bv_val; o++ ) ;
for ( n=0; new->a_vals[n].bv_val; n++ ) ;
/* there MUST be both onld and new values
* (otherwise j is used uninitialized) */
/* there MUST be both old and new values */
assert( o != 0 );
assert( n != 0 );
j = 0;
adds = op->o_tmpalloc( sizeof(struct berval *) * n, op->o_tmpmemctx );
dels = op->o_tmpalloc( sizeof(struct berval *) * o, op->o_tmpmemctx );