[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: kio_sftp rewrite
From:       Michael Pyne <mpyne () kde ! org>
Date:       2009-08-10 20:12:00
Message-ID: 200908101612.06695.mpyne () kde ! org
[Download RAW message or body]


On Monday 10 August 2009 06:51:52 you wrote:
> Am Montag 10 August 2009 schrieb Albert Astals Cid:
> > > Asunto: Re: kio_sftp rewrite
> > >
> > > -0400, Ben Boeckel wrote:
> > > > free() [....] should not crash on NULL
> > >
> > > wrong
> >
> > Not wrong:
> > [1] Linux: If ptr is NULL, no operation is performed.
> > [2] SCO: If ptr is a null pointer, no action occurs
> > [3] Microsoft: If memblock is NULL, the pointer is ignored and free
> > immediately returns. [4] FreeBSD: If ptr is NULL, no action occurs.
> 
> It's even required by POSIX:

Well that's nice and all but it's a C library function, with POSIX 
incorporates.

Luckily it is also required even from C89 to perform no action in the event of 
a NULL pointer from what I can tell.

Regards,
 - Michael Pyne

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic