1
0
mirror of https://github.com/armink/EasyLogger.git synced 2025-01-31 13:32:52 +08:00

增加对文件空指针的判断

This commit is contained in:
yuxiaojun 2022-12-07 16:09:33 +08:00
parent a1867805a8
commit 4a6621892b

View File

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