From: Kurt Zeilenga Date: Thu, 11 May 2000 02:41:34 +0000 (+0000) Subject: hostname needs to be static X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~3016 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4fad202b44e255eb64a9476f62e58d065b2b297b;p=openldap hostname needs to be static --- diff --git a/servers/slapd/sasl.c b/servers/slapd/sasl.c index fe640ff877..1043345f64 100644 --- a/servers/slapd/sasl.c +++ b/servers/slapd/sasl.c @@ -114,7 +114,7 @@ int sasl_init( void ) } if( sasl_host == NULL ) { - char hostname[MAXHOSTNAMELEN+1]; + static char hostname[MAXHOSTNAMELEN+1]; if( gethostname( hostname, MAXHOSTNAMELEN ) == 0 ) { hostname[MAXHOSTNAMELEN] = '\0';