realval = val;
tmpval = NULL;
- if ( prefix != '\0' ) {
+ if ( prefix != UNKNOWN_PREFIX ) {
unsigned int len = strlen( val );
if ( (len + 2) < sizeof(buf) ) {
realval = val;
tmpval = NULL;
idl = NULL;
- if ( prefix != '\0' ) {
+ if ( prefix != UNKNOWN_PREFIX ) {
unsigned int len = strlen( val );
if ( (len + 2) < sizeof(buf) ) {
prefix = SUB_PREFIX;
break;
default:
- prefix = '\0';
+ prefix = UNKNOWN_PREFIX;
break;
}
(void) dn_normalize (realBase);
- Debug( LDAP_DEBUG_TRACE, "using base %s\n",
+ Debug( LDAP_DEBUG_TRACE, "using base \"%s\"\n",
realBase, 0, 0 );
switch ( scope ) {
IDList *idl;
Entry *e;
- Debug(LDAP_DEBUG_TRACE, "base_candidates: base: %s\n", base, 0, 0);
+ Debug(LDAP_DEBUG_TRACE, "base_candidates: base: \"%s\"\n", base, 0, 0);
*err = LDAP_SUCCESS;
char buf[20];
IDList *candidates;
- Debug(LDAP_DEBUG_TRACE, "onelevel_candidates: base: %s\n", base, 0, 0);
+ Debug(LDAP_DEBUG_TRACE, "onelevel_candidates: base: \"%s\"\n", base, 0, 0);
*err = LDAP_SUCCESS;
e = NULL;
Filter *f, **filterarg_ptr;
IDList *candidates;
- Debug(LDAP_DEBUG_TRACE, "subtree_candidates: base: %s\n",
- base ? base : "NULL", 0, 0);
+ Debug(LDAP_DEBUG_TRACE, "subtree_candidates: base: \"%s\" %s\n",
+ base ? base : "NULL", lookupbase ? "lookupbase" : "", 0);
/*
* get the base object - unless we already have it (from one-level).