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;
|
||||
int n;
|
||||
char *cp;
|
||||
static int already;
|
||||
|
||||
if(!already){
|
||||
fmtinstall('H', encodefmt);
|
||||
already = 1;
|
||||
}
|
||||
fmtinstall('H', encodefmt);
|
||||
|
||||
tlsdevs = smalloc(sizeof(TlsRec*) * maxtlsdevs);
|
||||
trnames = smalloc((sizeof *trnames) * maxtlsdevs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue