From 0f5a264dc3db3085babd4dd3d0f2db023180ce74 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 15 Aug 2000 00:58:56 +0000 Subject: [PATCH] hostbuf should be static --- libraries/libldap/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libldap/init.c b/libraries/libldap/init.c index 164761b6ed..b8e23caaf2 100644 --- a/libraries/libldap/init.c +++ b/libraries/libldap/init.c @@ -439,7 +439,7 @@ void ldap_int_initialize( struct ldapoptions *gopts, int *dbglvl ) #if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) \ || defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL) { - char hostbuf[MAXHOSTNAMELEN+1]; + static char hostbuf[MAXHOSTNAMELEN+1]; if( gethostname( hostbuf, MAXHOSTNAMELEN ) == 0 ) { hostbuf[MAXHOSTNAMELEN] = '\0'; ldap_int_hostname = hostbuf; -- 2.39.5