]> 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>
Tue, 2 Aug 2005 10:57:42 +0000 (10:57 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Tue, 2 Aug 2005 10:57:42 +0000 (10:57 +0000)
libraries/libldap/request.c

index cd72f76af96f56e96cba98dd04f2a9b9c7c58876..637fbea859511c1ba988745aa0e75356e2c274ed 100644 (file)
@@ -305,7 +305,7 @@ ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb,
        }
        
        if ( use_ldsb ) {
-               assert( ld->ld_sb );
+               assert( ld->ld_sb != NULL );
                lc->lconn_sb = ld->ld_sb;
 
        } else {