aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/mem_dbg.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-01-14 17:28:48 +0000
committerBodo Möller <bodo@openssl.org>2000-01-14 17:28:48 +0000
commita8eeb155b5323809113e57e62de887b31f9fba7b (patch)
treec851ece4dca513e45caf179ff7d676895ce76d90 /crypto/mem_dbg.c
parent2f878669b7d1a22e52fa8ab86cf6a6095a9fad03 (diff)
downloadopenssl-a8eeb155b5323809113e57e62de887b31f9fba7b.tar.gz
Avoid some warnings, and run "make update".
Diffstat (limited to 'crypto/mem_dbg.c')
-rw-r--r--crypto/mem_dbg.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c
index 7f9cc0ec74..657530750d 100644
--- a/crypto/mem_dbg.c
+++ b/crypto/mem_dbg.c
@@ -592,9 +592,11 @@ static void print_leak(MEM *m, MEM_LEAK *l)
amip=m->app_info;
ami_cnt=0;
- if (amip)
- ti=amip->thread;
- while(amip && amip->thread == ti)
+ if (!amip)
+ return;
+ ti=amip->thread;
+
+ do
{
int buf_len;
int info_len;
@@ -622,6 +624,8 @@ static void print_leak(MEM *m, MEM_LEAK *l)
amip = amip->next;
}
+ while(amip && amip->thread == ti);
+
#ifdef LEVITTE_DEBUG
if (amip)
{