From: Kurt Zeilenga Date: Tue, 10 Dec 2002 16:44:02 +0000 (+0000) Subject: Make digit a local static variable instead of a global X-Git-Tag: NO_SLAP_OP_BLOCKS~699 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=32f6c9ec6d4dfdf00e8b6b08e7ac22c0c419f1f9;p=openldap Make digit a local static variable instead of a global --- diff --git a/servers/slapd/schema_init.c b/servers/slapd/schema_init.c index e25d9a7abe..e1fd36cc9a 100644 --- a/servers/slapd/schema_init.c +++ b/servers/slapd/schema_init.c @@ -3580,7 +3580,6 @@ integerBitOrMatch( #ifdef HAVE_TLS #include #include -char digit[] = "0123456789"; /* * Next function returns a string representation of a ASN1_INTEGER. @@ -3592,6 +3591,7 @@ asn1_integer2str(ASN1_INTEGER *a, struct berval *bv) { char buf[256]; char *p; + static char digit[] = "0123456789"; /* We work backwards, make it fill from the end of buf */ p = buf + sizeof(buf) - 1;