]> git.sur5r.net Git - openldap/commitdiff
Solaris doesn't like being passed NULL pointers to [vsf[n]]printf
authorPierangelo Masarati <ando@openldap.org>
Tue, 19 Jul 2005 18:59:50 +0000 (18:59 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 19 Jul 2005 18:59:50 +0000 (18:59 +0000)
servers/slapd/bconfig.c

index 899547da12c58ab4d1f2690627eb612c1aa9c9a4..39a1cda46102092c5f1051f121f78742144c28b6 100644 (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;
        }