1
0
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:
2013-01-18 19:56:34 -05:00
parent 045ae5b12c
commit a992c93381

View File

@ -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;