From 5b47859884767ae5cf617c122a5fccdbfb897f5f Mon Sep 17 00:00:00 2001 From: jwoolley Date: Mon, 4 Jun 2001 23:26:55 +0000 Subject: It is satisfactory for the current memory system itself to be tracking. So the real typo which the previous patch was meant to fix was just a missing semicolon, not a truncated line. =-) Submitted by: Sander Striker git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61696 13f79535-47bb-0310-9956-ffa450edef68 --- memory/unix/apr_sms.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'memory') diff --git a/memory/unix/apr_sms.c b/memory/unix/apr_sms.c index e679eb0a5..ec72e85f3 100644 --- a/memory/unix/apr_sms.c +++ b/memory/unix/apr_sms.c @@ -221,7 +221,10 @@ APR_DECLARE(void) apr_sms_assert(apr_sms_t *mem_sys) * tracking ancestors, but in that specific case we issue a * warning. */ - parent = mem_sys->parent_mem_sys; + if (!mem_sys->parent_mem_sys) + return; + + parent = mem_sys; while (parent) { if (apr_sms_is_tracking(parent)) return; /* Tracking memory system found, return satisfied ;-) */ -- cgit v1.2.1