]> git.sur5r.net Git - openldap/commitdiff
Avoid printf(NULL) on Solaris
authorHoward Chu <hyc@openldap.org>
Wed, 20 May 2009 12:42:34 +0000 (12:42 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 20 May 2009 12:42:34 +0000 (12:42 +0000)
servers/slapd/config.c

index c9763bf8be0a853e261675708f1cc6cbce97457e..f89acce44c2a34bfbdebc0883b77cf6f7c1984d1 100644 (file)
@@ -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);
        }