This is the mail archive of the
gnats-devel@sources.redhat.com
mailing list for the GNATS project.
Re: gnats/133
>>>>> "SP" == Sarang Padalkar <sarangp@catamarancom.com> writes:
SP> I got a trace, but it turns out that the core is created by file-pr
SP> Here is my gdb session. Let me know if I can provide any more info.
Thanks for the information. Does the following patch fix it?
*** file-pr.c.orig Sun Apr 22 12:02:53 2001
--- file-pr.c Sun Apr 22 12:07:04 2001
***************
*** 396,402 ****
check_if_reply ()
{
char token[STR_MAX];
! char *path;
struct stat buf;
Category cat;
char *s, *c, *cat_name;
--- 396,402 ----
check_if_reply ()
{
char token[STR_MAX];
! char *path = NULL;
struct stat buf;
Category cat;
char *s, *c, *cat_name;
*** xmalloc.c.orig Sun Apr 22 12:07:19 2001
--- xmalloc.c Sun Apr 22 12:07:27 2001
***************
*** 75,80 ****
xfree (p)
char *p;
{
! if (p != 0)
free (p);
}
--- 75,80 ----
xfree (p)
char *p;
{
! if (p != NULL)
free (p);
}
Milan Zamazal
--
It's amazing how much better you feel once you've given up hope.
(unknown source)