Re: More on tilde expansion



Hello,

On Tue, 21 Sep 2004, Leonard den Ottolander wrote:

>     if (!*dest_dir) {
> 	g_free (dest_dir);
>
> Is this assumption wrong? Will g_free free all the allocated memory even
> though the first byte is a 0 byte?

Yes - it will free the memory. It does not care about the memory contents.



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