From: Howard Chu Date: Wed, 4 Dec 2002 16:47:35 +0000 (+0000) Subject: Fix Solaris SEGV when base is not specified X-Git-Tag: NO_SLAP_OP_BLOCKS~725 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5efa571ad2b98c2cc6e4361c9ff6c03d225d5cfb;p=openldap Fix Solaris SEGV when base is not specified --- diff --git a/clients/tools/ldapsearch.c b/clients/tools/ldapsearch.c index d1a0bd471a..36d6cbbc91 100644 --- a/clients/tools/ldapsearch.c +++ b/clients/tools/ldapsearch.c @@ -1191,7 +1191,7 @@ getNextPage: "# filter%s: %s\n" "# requesting: ", version, - base, (scope == LDAP_SCOPE_BASE) ? "base" + base ? base : "", (scope == LDAP_SCOPE_BASE) ? "base" : ((scope == LDAP_SCOPE_ONELEVEL) ? "one" : "sub"), infile != NULL ? " pattern" : "", filtpattern );