Commit 22f425c1 authored by Luke Howard's avatar Luke Howard
Browse files

Fix warning in assignment

parent 12949734
......@@ -131,7 +131,7 @@ ldap_back_modify(
}
mods[i].mod_bvalues[j] = &mapped;
}
mods[i].mod_values[j] = NULL;
mods[i].mod_bvalues[j] = NULL;
} else {
if ( ml->sml_desc->ad_type->sat_syntax ==
......@@ -148,11 +148,11 @@ ldap_back_modify(
sizeof(struct berval *));
for (j = 0; ml->sml_values[j].bv_val; j++)
mods[i].mod_bvalues[j] = &ml->sml_values[j];
mods[i].mod_values[j] = NULL;
mods[i].mod_bvalues[j] = NULL;
}
} else {
mods[i].mod_values = NULL;
mods[i].mod_bvalues = NULL;
}
i++;
......@@ -186,7 +186,7 @@ cleanup:;
free( mdn.bv_val );
}
for (i=0; modv[i]; i++) {
ch_free(modv[i]->mod_values);
ch_free(modv[i]->mod_bvalues);
}
ch_free( mods );
ch_free( modv );
......
......@@ -141,7 +141,7 @@ cleanup:;
}
if ( modv != NULL ) {
for ( i = 0; modv[ i ]; i++) {
free( modv[ i ]->mod_values );
free( modv[ i ]->mod_bvalues );
}
}
free( mods );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment