bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSoC: PATH_MAX


From: Emilio Pozuelo Monfort
Subject: Re: GSoC: PATH_MAX
Date: Thu, 07 Apr 2011 23:40:56 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9

On 07/04/11 21:42, olafBuddenhagen@gmx.net wrote:
> I don't know how g_free() behaves -- but if it's the same as normal
> free(), you don't need the conditional: free(NULL) is a no-op by
> definition.

g_free is null-safe too. I thought free(NULL) wasn't safe and led to crashes,
but you're right according to free(3).

Emilio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]