]> git.sur5r.net Git - openldap/commitdiff
null base fix
authorKurt Zeilenga <kurt@openldap.org>
Wed, 11 Dec 2002 02:07:28 +0000 (02:07 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 11 Dec 2002 02:07:28 +0000 (02:07 +0000)
clients/tools/ldapsearch.c

index 53d131935c3bce81f8ea826e1e5c45383c86d0b7..5c86891794056db7309a78cb656b17657ac6d607 100644 (file)
@@ -1036,7 +1036,7 @@ main( int argc, char **argv )
                        "# 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 );