mirror of
https://github.com/armink/EasyLogger.git
synced 2025-01-31 13:32:52 +08:00
增加对文件空指针的判断
This commit is contained in:
parent
a1867805a8
commit
4a6621892b
@ -113,6 +113,9 @@ void elog_file_write(const char *log, size_t size)
|
||||
|
||||
ELOG_ASSERT(init_ok);
|
||||
ELOG_ASSERT(log);
|
||||
if(fp == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
elog_file_port_lock();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user