mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
minor cleanup
This commit is contained in:
parent
65b042b4fb
commit
fa7d65bbbe
1 changed files with 1 additions and 2 deletions
|
|
@ -1848,7 +1848,6 @@ meta_send_entry(
|
|||
const char *text;
|
||||
dncookie dc;
|
||||
ber_len_t len;
|
||||
ber_tag_t tag;
|
||||
int rc;
|
||||
|
||||
if ( ber_scanf( &ber, "l{", &len ) == LBER_ERROR ) {
|
||||
|
|
@ -2214,7 +2213,7 @@ next_attr:;
|
|||
LBER_FREE( attr->a_nvals[i].bv_val );
|
||||
LBER_FREE( attr->a_vals[i].bv_val );
|
||||
attr->a_numvals--;
|
||||
if ( i < attr->a_numvals ) {
|
||||
if ( (unsigned)i < attr->a_numvals ) {
|
||||
attr->a_vals[i] = attr->a_vals[attr->a_numvals];
|
||||
if ( attr->a_nvals != attr->a_vals )
|
||||
attr->a_nvals[i] = attr->a_nvals[attr->a_numvals];
|
||||
|
|
|
|||
Loading…
Reference in a new issue