From: Hallvard Furuseth Date: Thu, 11 Jan 2007 12:03:20 +0000 (+0000) Subject: assert expects int. (int) can be 0. Use assert(arg!=NULL). X-Git-Tag: OPENLDAP_REL_ENG_2_4_4ALPHA~8^2~204 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a8eacbb355008218c6f3b8cdd4ffe54a41421915;p=openldap assert expects int. (int) can be 0. Use assert(arg!=NULL). --- diff --git a/servers/slapd/overlays/ppolicy.c b/servers/slapd/overlays/ppolicy.c index cd40a9df02..48ecf68219 100644 --- a/servers/slapd/overlays/ppolicy.c +++ b/servers/slapd/overlays/ppolicy.c @@ -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 ] ) ) {