projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfd53c3
)
Move variable declaration to the start of the function
author
Alessandro Ghedini
<alessandro@ghedini.me>
Tue, 8 Mar 2016 21:58:17 +0000
(21:58 +0000)
committer
Matt Caswell
<matt@openssl.org>
Wed, 9 Mar 2016 01:20:53 +0000
(
01:20
+0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/mem_dbg.c
patch
|
blob
|
history
diff --git
a/crypto/mem_dbg.c
b/crypto/mem_dbg.c
index 36efed8fba1c3f9918ef02e0c97a1fecbee3a6a1..e69869d0e95e6a9fc40e7dd5fe20a09cc3b35a18 100644
(file)
--- a/
crypto/mem_dbg.c
+++ b/
crypto/mem_dbg.c
@@
-284,11
+284,12
@@
int CRYPTO_mem_ctrl(int mode)
static int mem_check_on(void)
{
int ret = 0;
+ CRYPTO_THREAD_ID cur;
if (mh_mode & CRYPTO_MEM_CHECK_ON) {
CRYPTO_THREAD_run_once(&memdbg_init, do_memdbg_init);
-
CRYPTO_THREAD_ID
cur = CRYPTO_THREAD_get_current_id();
+ cur = CRYPTO_THREAD_get_current_id();
CRYPTO_THREAD_read_lock(malloc_lock);
ret = (mh_mode & CRYPTO_MEM_CHECK_ENABLE)