char *at_cn;
+ if( vals == NULL ) {
+ Debug( LDAP_DEBUG_TRACE,
+ "=> bdb2i_index_add_values( \"%s\", NULL, %ld )\n",
+ type, id, 0 );
+ return 0;
+ }
+
Debug( LDAP_DEBUG_TRACE, "=> bdb2i_index_add_values( \"%s\", %ld )\n", type,
id, 0 );
attr_normalize( type );
return( -1 );
}
- if( vals != NULL ) {
- for ( i = 0; vals[i] != NULL; i++ ) {
+ for ( i = 0; vals[i] != NULL; i++ ) {
/*
* presence index entry
*/
if ( bigbuf != NULL ) {
free( bigbuf );
}
- }
}
bdb2i_cache_close( be, db );
char *at_cn; /* Attribute canonical name */
int mode;
+ if( vals == NULL ) {
+ Debug( LDAP_DEBUG_TRACE,
+ "=> index_change_values( %s, NULL, %ld, op=%s )\n",
+ type, id, ((op == __INDEX_ADD_OP) ? "ADD" : "DELETE" ) );
+ return 0;
+ }
+
Debug( LDAP_DEBUG_TRACE,
"=> index_change_values( \"%s\", %ld, op=%s )\n",
type, id, ((op == __INDEX_ADD_OP) ? "ADD" : "DELETE" ) );
}
- if ( vals != NULL ) {
- for ( i = 0; vals[i] != NULL; i++ ) {
+ for ( i = 0; vals[i] != NULL; i++ ) {
/*
* presence index entry
*/
if ( bigbuf != NULL ) {
free( bigbuf );
}
- }
}
ldbm_cache_close( be, db );