Variable was declared static when it shouldn't be
authorMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2016 16:46:33 +0000 (16:46 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 10 Feb 2016 17:37:11 +0000 (17:37 +0000)
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>
crypto/init.c

index 04191ded6223e150d5f9e147499cb183bc175560..3238b8002560c59e69731f2b0a21694856547a41 100644 (file)
@@ -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;