Skip to content
Snippets Groups Projects
Commit 754f5eea authored by Dmitry E. Oboukhov's avatar Dmitry E. Oboukhov
Browse files

Use __thread static variable, #405

parent f6ea7180
No related merge requests found
......@@ -36,7 +36,7 @@ extern "C" {
unsigned char *
SHA1internal(const unsigned char *d, size_t n, unsigned char *md)
{
static unsigned char result[20];
static __thread unsigned char result[20];
SHA1_CTX ctx;
SHA1Init(&ctx);
SHA1Update(&ctx, d, n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment