]> git.sur5r.net Git - openldap/commitdiff
assert expects int. (int)<nonnull ptr/long> can be 0. Use assert(arg!=0/NULL).
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 22 Jul 2005 14:35:16 +0000 (14:35 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 22 Jul 2005 14:35:16 +0000 (14:35 +0000)
servers/slapd/sasl.c

index 56e016efccb89bbcf5dd5c72cdaed250ad35532c..5aac28e25ef01ef0fc8af6d02ca0709a7146eff2 100644 (file)
@@ -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 );