Re: cvs commit: squid/src url.c

From: Benno Rice <benno_at_jeamland.net>
Date: Fri, 29 Aug 2008 09:42:55 +1000

On 29/08/2008, at 5:09 AM, Henrik Nordstrom wrote:

> On tis, 2008-08-26 at 19:34 -0600, Benno Rice wrote:
>> benno 2008/08/26 19:34:42 MDT
>>
>> Modified files:
>> src url.c
>> Log:
>> Fix breakage caused by recent GCC fixes.
>>
>> The fixes in question prevented the returning of pre-defined
>> method_t
>> structures as well as any attempts at error reporting (and
>> avoiding SEGVs) by
>> removing all checks against NULL. If these checks are causing
>> problems, please
>> consult with me about the best way to avoid them without messing
>> up the actual
>> logic.
>
> Sorry about the predefined method messup.

No worries.

> But the NULL checks after allocation is junk. The Squid xmalloc/
> xstrdup
> functions can not return NULL (Squid aborts in such case, before
> returning).

Yeah, Adrian explained that to me. I was just following my ingrained
practice of always checking what malloc gives me and didn't realise
that xmalloc had different behaviour. I'll get rid of those checks
shortly.

-- 
Benno Rice
benno_at_jeamland.net
Received on Thu Aug 28 2008 - 23:43:21 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 29 2008 - 12:00:06 MDT