mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2024-11-27 20:14:17 +01:00
Add check if filter is not a nullptr
Fix segfault and pass tests
This commit is contained in:
parent
c4f98c1a2e
commit
2b4998a122
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user