mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:44:14 +08:00
test: allow null as 'function name' for logging (coverity).
Change-Id: I047a4c372514e85d19dd3d3719f8ad3be046171e
This commit is contained in:
parent
136e98fb93
commit
66f8327642
@ -76,9 +76,10 @@ static void mdbx_debug_logger(int type, const char *function, int line,
|
||||
if (type & MDBX_DBG_PRINT)
|
||||
level = logging::verbose;
|
||||
|
||||
if (!function)
|
||||
function = "unknown";
|
||||
if (type & MDBX_DBG_ASSERT) {
|
||||
log_error("mdbx: assertion failure: %s, %d",
|
||||
function ? function : "unknown", line);
|
||||
log_error("mdbx: assertion failure: %s, %d", function, line);
|
||||
level = logging::failure;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user