kio_sftp rewrite

Michael Pyne mpyne at kde.org
Mon Aug 10 21:12:00 BST 2009


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090810/fd15ca12/attachment.sig>


More information about the kde-core-devel mailing list