From 5efa571ad2b98c2cc6e4361c9ff6c03d225d5cfb Mon Sep 17 00:00:00 2001
From: Howard Chu <hyc@openldap.org>
Date: Wed, 4 Dec 2002 16:47:35 +0000
Subject: [PATCH] Fix Solaris SEGV when base is not specified

---
 clients/tools/ldapsearch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 );
-- 
GitLab