From e5595314074872acba493fbf7bc5cc5763aeddd0 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Tue, 17 Aug 1999 01:49:19 +0000 Subject: [PATCH] Print "" instead of "0" when ldapport=0 in ldapsearch -v --- clients/tools/ldapsearch.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ); } -- 2.39.5