mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Avoid printf(NULL) on Solaris
This commit is contained in:
parent
9e82dee243
commit
acba6fde99
@ -145,7 +145,7 @@ int config_check_vals(ConfigTable *Conf, ConfigArgs *c, int check_only ) {
|
||||
}
|
||||
if(Conf->min_args && (c->argc < Conf->min_args)) {
|
||||
snprintf( c->cr_msg, sizeof( c->cr_msg ), "<%s> missing <%s> argument",
|
||||
c->argv[0], Conf->what );
|
||||
c->argv[0], Conf->what ? Conf->what : "" );
|
||||
Debug(LDAP_DEBUG_CONFIG|LDAP_DEBUG_NONE, "%s: keyword %s\n", c->log, c->cr_msg, 0 );
|
||||
return(ARG_BAD_CONF);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user