mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Don't dereference a null pointer
This commit is contained in:
@ -719,6 +719,8 @@ bool plStatusLog::AddLineF( uint32_t color, const char *format, ... )
|
||||
bool plStatusLog::AddLineS( const char *filename, const char *format, ... )
|
||||
{
|
||||
plStatusLog *log = plStatusLogMgr::GetInstance().FindLog( filename );
|
||||
if (!log)
|
||||
return false;
|
||||
|
||||
if(fLoggingOff && !log->fForceLog)
|
||||
return true;
|
||||
@ -732,6 +734,8 @@ bool plStatusLog::AddLineS( const char *filename, const char *format, ... )
|
||||
bool plStatusLog::AddLineS( const char *filename, uint32_t color, const char *format, ... )
|
||||
{
|
||||
plStatusLog *log = plStatusLogMgr::GetInstance().FindLog( filename );
|
||||
if (!log)
|
||||
return false;
|
||||
|
||||
if(fLoggingOff && !log->fForceLog)
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user