Solaris doesn't like being passed NULL pointers to [vsf[n]]printf

This commit is contained in:
Pierangelo Masarati 2005-07-19 18:59:50 +00:00
parent ac590d6b55
commit b838f3e2a1

View file

@ -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;
}