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

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

(This used to be commit 96c36e51ee)
This commit is contained in:
Tim Potter 2002-01-22 00:36:53 +00:00
parent a45dbdd722
commit 5916634a3a

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);
}