From cvs-return-1623-apmail-apr-cvs-archive=apr.apache.org@apr.apache.org Thu Jul 12 16:58:06 2001 Return-Path: Delivered-To: apmail-apr-cvs-archive@apr.apache.org Received: (qmail 95061 invoked by uid 500); 12 Jul 2001 16:58:01 -0000 Mailing-List: contact cvs-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: dev@apr.apache.org Delivered-To: mailing list cvs@apr.apache.org Received: (qmail 95004 invoked by uid 1343); 12 Jul 2001 16:57:57 -0000 Date: 12 Jul 2001 16:57:57 -0000 Message-ID: <20010712165757.95003.qmail@apache.org> From: striker@apache.org To: apr-cvs@apache.org Subject: cvs commit: apr/memory/unix apr_sms_trivial.c striker 01/07/12 09:57:57 Modified: memory/unix apr_sms_trivial.c Log: Fix up the min_free setting in the create function is a way that it always reserves enough extra space to fit the node header. Revision Changes Path 1.16 +3 -1 apr/memory/unix/apr_sms_trivial.c Index: apr_sms_trivial.c =================================================================== RCS file: /home/cvs/apr/memory/unix/apr_sms_trivial.c,v retrieving revision 1.15 retrieving revision 1.16 diff -u -r1.15 -r1.16 --- apr_sms_trivial.c 2001/07/07 12:26:32 1.15 +++ apr_sms_trivial.c 2001/07/12 16:57:52 1.16 @@ -485,7 +485,9 @@ min_alloc = APR_ALIGN_DEFAULT(min_alloc); min_free = APR_ALIGN_DEFAULT(min_free); - + if (min_free < SIZEOF_NODE_T) + min_free = SIZEOF_NODE_T; + /* We're not a top level module, ie we have a parent, so * we allocate the memory for the structure from our parent. * This is safe as we shouldn't outlive our parent...