From: Hallvard Furuseth Date: Fri, 22 Jul 2005 14:35:16 +0000 (+0000) Subject: assert expects int. (int) can be 0. Use assert(arg!=0/NULL). X-Git-Tag: OPENLDAP_AC_BP~242 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7f82239b6ffe137d38bea8f831b716e683d8d1b;p=openldap assert expects int. (int) can be 0. Use assert(arg!=0/NULL). --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index 56e016efcc..5aac28e25e 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -1554,7 +1554,7 @@ int slap_sasl_getdn( Connection *conn, Operation *op, struct berval *id, if ( !op ) { op = conn->c_sasl_bindop; } - assert( op ); + assert( op != NULL ); BER_BVZERO( dn );