diff options
author | Matt Caswell <matt@openssl.org> | 2016-02-10 17:46:33 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-02-10 18:37:11 +0100 |
commit | 8bd8221be80708825ddb9771d4c9fff67860119b (patch) | |
tree | ed5bc49d58b4bc1261fac87e35f7f077e22bd738 /crypto/init.c | |
parent | Improve recent option help string additions (diff) | |
download | openssl-8bd8221be80708825ddb9771d4c9fff67860119b.tar.xz openssl-8bd8221be80708825ddb9771d4c9fff67860119b.zip |
Variable was declared static when it shouldn't be
The local variable tmp was declared static when it shouldn't be. This
is in the no-threads implementation, and it was immediately initialised
to something else on every invokation of the function so it doesn't break
anything...but still shouldn't be there.
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Diffstat (limited to 'crypto/init.c')
-rw-r--r-- | crypto/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/init.c b/crypto/init.c index 04191ded62..3238b80025 100644 --- a/crypto/init.c +++ b/crypto/init.c @@ -99,7 +99,7 @@ static void ossl_init_thread_stop_cleanup(void) static struct thread_local_inits_st *local = NULL; static struct thread_local_inits_st *ossl_init_get_thread_local(int alloc) { - static struct thread_local_inits_st *tmp; + struct thread_local_inits_st *tmp; tmp = local; |