mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
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:
parent
26818ce2cf
commit
93f2b40fba
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user