mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Make digit a local static variable instead of a global
This commit is contained in:
parent
fbbbdd8b94
commit
32f6c9ec6d
@ -3580,7 +3580,6 @@ integerBitOrMatch(
|
|||||||
#ifdef HAVE_TLS
|
#ifdef HAVE_TLS
|
||||||
#include <openssl/x509.h>
|
#include <openssl/x509.h>
|
||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
char digit[] = "0123456789";
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Next function returns a string representation of a ASN1_INTEGER.
|
* 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 buf[256];
|
||||||
char *p;
|
char *p;
|
||||||
|
static char digit[] = "0123456789";
|
||||||
|
|
||||||
/* We work backwards, make it fill from the end of buf */
|
/* We work backwards, make it fill from the end of buf */
|
||||||
p = buf + sizeof(buf) - 1;
|
p = buf + sizeof(buf) - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user