Return-Path: Delivered-To: apmail-apr-dev-archive@apr.apache.org Received: (qmail 14878 invoked by uid 500); 19 May 2001 21:26:15 -0000 Mailing-List: contact dev-help@apr.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list dev@apr.apache.org Received: (qmail 14867 invoked from network); 19 May 2001 21:26:15 -0000 Message-ID: <3B06E4E0.DD3961CC@algroup.co.uk> Date: Sat, 19 May 2001 22:25:52 +0100 From: Ben Laurie X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Cliff Woolley Cc: dev@apr.apache.org Subject: Re: cvs commit: apr/memory/unix apr_sms.c References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Cliff Woolley wrote: > > On 19 May 2001 ben@apache.org wrote: > > > --- apr_sms.c 2001/05/19 13:53:06 1.3 > > +++ apr_sms.c 2001/05/19 15:35:45 1.4 > > @@ -193,7 +193,7 @@ > > mem_sys->accounting_mem_sys = mem_sys; > > > > if (parent_mem_sys != NULL){ > > - if (mem_sys->sibling_mem_sys = parent_mem_sys->child_mem_sys){ > > + if ((mem_sys->sibling_mem_sys = parent_mem_sys->child_mem_sys)){ > > mem_sys->sibling_mem_sys->ref_mem_sys = &mem_sys->sibling_mem_sys; > > } > > mem_sys->ref_mem_sys = &parent_mem_sys->child_mem_sys; > > Just to verify (haven't looked at this section of the code itself yet), > assignment IS what's intended here, right? If so, a ((foo = bar) != NULL) > might make that more clear. Good point. I foolishly assumed the assignment was intentional - it still looks like it is, but confirmation from someone who knows would be good. I agree with != NULL if it is so. Cheers, Ben. -- http://www.apache-ssl.org/ben.html "There is no limit to what a man can do or how far he can go if he doesn't mind who gets the credit." - Robert Woodruff