mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#159 fix. ldaphost may be NULL when used as printf "%s" argument.
This commit is contained in:
parent
06239ebd66
commit
fffc29df9b
1 changed files with 3 additions and 1 deletions
|
|
@ -265,7 +265,9 @@ main( int argc, char **argv )
|
|||
#endif
|
||||
|
||||
if ( verbose ) {
|
||||
printf( "ldap_init( %s, %d )\n", ldaphost, ldapport );
|
||||
printf( "ldap_init( %s, %d )\n",
|
||||
(ldaphost != NULL) ? ldaphost : "<DEFAULT>",
|
||||
ldapport );
|
||||
}
|
||||
|
||||
if (( ld = ldap_init( ldaphost, ldapport )) == NULL ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue