shithub: riscv

Download patch

ref: 058951bb80bed643b0a0c57b1d4da1889d92626e
parent: 26d36c3ae2fd6ae40148be58589ea5e81b0ca341
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jan 22 17:08:07 EST 2019

devtls: remove static "already" flag in tlsinit(). this function is only run once.

--- a/sys/src/9/port/devtls.c
+++ b/sys/src/9/port/devtls.c
@@ -1793,12 +1793,8 @@
 	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);