]> git.sur5r.net Git - openldap/commitdiff
Fix Solaris SEGV when base is not specified
authorHoward Chu <hyc@openldap.org>
Wed, 4 Dec 2002 16:47:35 +0000 (16:47 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 4 Dec 2002 16:47:35 +0000 (16:47 +0000)
clients/tools/ldapsearch.c

index d1a0bd471a0e9bd1c1c89dce01c8805a835aa5aa..36d6cbbc91de1c897bc8377ced7eb581df7d430d 100644 (file)
@@ -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 );