1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

Display tdb name of "unknown" in logging debug when tdb has not been named.

This commit is contained in:
Tim Potter 0001-01-01 00:00:00 +00:00
parent e05c9b34f0
commit 96c36e51ee

View File

@ -472,7 +472,7 @@ static void tdb_log(TDB_CONTEXT *tdb, int level, const char *format, ...)
if (!ptr || !*ptr)
return;
DEBUG(level, ("tdb(%s): %s", tdb->name, ptr));
DEBUG(level, ("tdb(%s): %s", tdb->name ? tdb->name : "unknown", ptr));
SAFE_FREE(ptr);
}