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

Re: Xchat ?

On Sat, Feb 19, 2005 at 06:46:02AM -0800, Barry deFreese wrote:

> >What happens if get_current_dir_name returns NULL?
> >
> > 
> >
> HAVE_GET_CURRENT_DIR_NAME won't get set and it will fall through the 
> getcwd() code.
> Michael,
> I didn't play with the spacing, I just modified what Chris had already 
> done.  If everyone thinks this is OK, I can change that.
> Thanks,

I mean that if HAVE_GET_CURRENT_DIR_NAME is set and then at run time
the call to get_current_dir_name returns NULL you will have chdir
called with a NULL value.  Maybe that is harmless, I don't know, but
the getcwd code has a check to avoid it.

Mike Small

Reply to: