devtls: remove static "already" flag in tlsinit(). this function is only run once.
This commit is contained in:
parent
26d36c3ae2
commit
058951bb80
1 changed files with 1 additions and 5 deletions
|
@ -1793,12 +1793,8 @@ tlsinit(void)
|
||||||
struct Hashalg *h;
|
struct Hashalg *h;
|
||||||
int n;
|
int n;
|
||||||
char *cp;
|
char *cp;
|
||||||
static int already;
|
|
||||||
|
|
||||||
if(!already){
|
fmtinstall('H', encodefmt);
|
||||||
fmtinstall('H', encodefmt);
|
|
||||||
already = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs);
|
tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs);
|
||||||
trnames = smalloc((sizeof *trnames) * maxtlsdevs);
|
trnames = smalloc((sizeof *trnames) * maxtlsdevs);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue