From: Hallvard Furuseth Date: Tue, 17 Aug 1999 01:49:19 +0000 (+0000) Subject: Print "" instead of "0" when ldapport=0 in ldapsearch -v X-Git-Tag: TWEB_OL_BASE~200 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e5595314074872acba493fbf7bc5cc5763aeddd0;p=openldap Print "" instead of "0" when ldapport=0 in ldapsearch -v --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index 6a3a90d511..ff54f101ba 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -339,7 +339,8 @@ main( int argc, char **argv ) #endif if ( verbose ) { - fprintf( stderr, "ldap_init( %s, %d )\n", + fprintf( stderr, + (ldapport ? "ldap_init( %s, %d )\n" : "ldap_init( %s, )\n"), (ldaphost != NULL) ? ldaphost : "", ldapport ); }