]> git.sur5r.net Git - openldap/commitdiff
don't assume NULL is zero.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 15 Nov 1998 06:55:20 +0000 (06:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 15 Nov 1998 06:55:20 +0000 (06:55 +0000)
clients/gopher/go500.c

index e93b5504e820da147a59ccef9b1553731e3b98ad..367ecaebfe6999334b7dff0ea8d588892b1f7105 100644 (file)
@@ -426,8 +426,10 @@ int        s;
 
        fprintf( fp, ".\r\n" );
        rewind(fp);
-       if ( ld )
+
+       if ( ld == NULL) {
                ldap_unbind( ld );
+       }
 
        exit( 1 );
        /* NOT REACHED */