null check in stack trace code so we don't crash on some systems. r=bryner, dbaron no bug number.

This commit is contained in:
blizzard%redhat.com 2001-11-09 16:18:56 +00:00
parent 26818ce2cf
commit 93f2b40fba
2 changed files with 4 additions and 0 deletions

View File

@ -1067,6 +1067,8 @@ nsTraceRefcnt::WalkTheStack(FILE* aStream)
const char * symbol = info.dli_sname;
if (!symbol)
break; // XXX Lazy. We should look at the filename or something.
int len = strlen(symbol);
if (! len)
break; // XXX Lazy. We could look at the filename or something.

View File

@ -1067,6 +1067,8 @@ nsTraceRefcnt::WalkTheStack(FILE* aStream)
const char * symbol = info.dli_sname;
if (!symbol)
break; // XXX Lazy. We should look at the filename or something.
int len = strlen(symbol);
if (! len)
break; // XXX Lazy. We could look at the filename or something.