1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +02:00

Fixed local crash

This commit is contained in:
Brian Fiete 2020-04-26 10:27:38 -07:00
parent 595f35b42e
commit 0e7b7e34a7

View file

@ -2751,7 +2751,7 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
bool isConst = false; bool isConst = false;
int64 constVal = 0; int64 constVal = 0;
if ((compileUnit->mLanguage == DbgLanguage_Beef) && (name[0] != '$')) if ((compileUnit->mLanguage == DbgLanguage_Beef) && (name != NULL) && (name[0] != '$'))
{ {
for (char* cPtr = name + 1; true; cPtr++) for (char* cPtr = name + 1; true; cPtr++)
{ {