assert expects int. (int)<nonnull ptr> can be 0. Use assert(arg!=NULL).

This commit is contained in:
Hallvard Furuseth 2007-01-11 12:03:20 +00:00
parent 3ef684fd04
commit a8eacbb355

View file

@ -1282,7 +1282,7 @@ ppolicy_add(
if ((pa = attr_find( op->oq_add.rs_e->e_attrs,
slap_schema.si_ad_userPassword )))
{
assert( pa->a_vals );
assert( pa->a_vals != NULL );
assert( !BER_BVISNULL( &pa->a_vals[ 0 ] ) );
if ( !BER_BVISNULL( &pa->a_vals[ 1 ] ) ) {