* 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:
@ -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;
|
||||
|
Reference in New Issue
Block a user