citra-emu
/
citra-canary
Archived
1
0
Fork 0

Add check if filter is not a nullptr

Fix segfault and pass tests
This commit is contained in:
Daniel Lim Wee Soong 2018-03-17 22:55:57 +08:00
parent c4f98c1a2e
commit 2b4998a122
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ void SetFilter(Filter* new_filter) {
void LogMessage(Class log_class, Level log_level, const char* filename, unsigned int line_num,
const char* function, const char* format, ...) {
if (!filter->CheckMessage(log_class, log_level))
if (filter != nullptr && !filter->CheckMessage(log_class, log_level))
return;
std::array<char, 4 * 1024> formatting_buffer;
va_list args;