* cygheap.cc (cygheap_fixup_in_child): Don't consider a NULL bucket as a

candidate for deletion.  It is actually the end of a linked list chain.
* exceptions.cc (open_stackdumpfile): Default to "unknown" program name if
myself->progname hasn't been filled out yet.
This commit is contained in:
Christopher Faylor
2001-09-06 18:06:27 +00:00
parent 128f2650a5
commit b2bfade325
3 changed files with 13 additions and 2 deletions

View File

@ -158,7 +158,9 @@ open_stackdumpfile ()
{
const char *p;
/* write to progname.stackdump if possible */
if ((p = strrchr (myself->progname, '\\')))
if (!myself->progname[0])
p = "unknown";
else if ((p = strrchr (myself->progname, '\\')))
p++;
else
p = myself->progname;