From: Pierangelo Masarati Date: Tue, 19 Jul 2005 18:59:50 +0000 (+0000) Subject: Solaris doesn't like being passed NULL pointers to [vsf[n]]printf X-Git-Tag: OPENLDAP_AC_BP~319 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b838f3e2a1c2d6414b7fb2edc53d85f53ccd9eb3;p=openldap Solaris doesn't like being passed NULL pointers to [vsf[n]]printf --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 899547da12..39a1cda461 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -1564,7 +1564,9 @@ config_suffix(ConfigArgs *c) if ( notallowed != NULL ) { Debug(LDAP_DEBUG_ANY, "%s: suffix <%s> not allowed in %s database.\n", - c->log, c->value_dn.bv_val, notallowed ); + c->log, + BER_BVISNULL( &c->value_dn ) ? "NULL" : c->value_dn.bv_val, + notallowed ); return 1; }