MinGW status for readline
Daniel Jacobowitz
drow@false.org
Tue Apr 11 14:33:00 GMT 2006
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
More information about the Gdb
mailing list