From acba6fde99c87f26f91997e79d61ae2f22d13c43 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Wed, 20 May 2009 12:42:34 +0000 Subject: [PATCH] Avoid printf(NULL) on Solaris --- servers/slapd/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/slapd/config.c b/servers/slapd/config.c index c9763bf8be..f89acce44c 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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); } -- 2.39.5