From: Kurt Zeilenga Date: Tue, 15 Aug 2000 00:58:56 +0000 (+0000) Subject: hostbuf should be static X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2254 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0f5a264dc3db3085babd4dd3d0f2db023180ce74;p=openldap hostbuf should be static --- 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;