This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MinGW status for readline


On Tue, Apr 11, 2006 at 09:44:42AM -0400, Chet Ramey wrote:
> Daniel Jacobowitz wrote:
> 
> > 1.  Readline 5.1 currently fails to build for MinGW, in tilde.c.  The
> > problem is:
> > 
> >       dirname = glue_prefix_and_suffix (user_entry->pw_dir, filename, user_len);
> > 
> > I've just moved the else branch inside the #if defined (HAVE_GETPWENT),
> > from just below.  With that change, readline builds.  Here's the patch:
> 
> Thanks, though that patch introduces a memory leak.

How?  Oh, if HAVE_GETPWNAME but not HAVE_GETPWENT?  I'm not sure why
you've got a call to endpwent there at all; I thought that only closed
getpwent, not getpwnam, and that path doesn't call getpwent.

> Thanks, I fixed it.

Great, thank you!

-- 
Daniel Jacobowitz
CodeSourcery


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]