Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Randy Dunlap <randy.dunlap@...>
Cc: Rob Landley <rob@...>, <akpm@...>, <linux-kernel@...>, <rdunlap@...>
Date: Tuesday, October 9, 2007 - 1:19 pm

On Tue, Oct 09, 2007 at 08:55:00AM -0700, Randy Dunlap wrote:

I meant if getenv() failed, "srctree = getcwd(NULL, 0)" will let 
"srctree" point to a _ malloc()ed _ buffer representing PWD. 
As said in the manpage, this buffer needs to be free()ed after usage.
Right or I'm the one who needs that cup of coffee :) ?

Regards,

-- 
Ahmed S. Darwish
HomePage: http://darwish.07.googlepages.com
Blog: http://darwish-07.blogspot.com
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set., Ahmed S. Darwish, (Tue Oct 9, 9:03 am)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set., Ahmed S. Darwish, (Tue Oct 9, 1:19 pm)
Re: [PATCH] Stop docproc segfaulting when SRCTREE isn't set., Ahmed S. Darwish, (Tue Oct 9, 1:51 pm)