summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-01-22 00:36:53 +0000
committerTim Potter <tpot@samba.org>2002-01-22 00:36:53 +0000
commit96c36e51ee4df4c46e5e9e611844dfa83260f606 (patch)
tree296679a229d6a9ae96fda71efe12d34ddc866588 /source
parente05c9b34f084874fef3d9e6f39484242ed541940 (diff)
downloadsamba-96c36e51ee4df4c46e5e9e611844dfa83260f606.tar.gz
samba-96c36e51ee4df4c46e5e9e611844dfa83260f606.tar.xz
samba-96c36e51ee4df4c46e5e9e611844dfa83260f606.zip
Display tdb name of "unknown" in logging debug when tdb has not been named.
Diffstat (limited to 'source')
-rw-r--r--source/tdb/tdbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tdb/tdbutil.c b/source/tdb/tdbutil.c
index 9ca44301366..5f94633d26e 100644
--- a/source/tdb/tdbutil.c
+++ b/source/tdb/tdbutil.c
@@ -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);
}