summaryrefslogtreecommitdiff
path: root/source3
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
commit5916634a3abe193ed68ab2b75dd0cdd0c8fdeb44 (patch)
treee937888375945dbf1163f0acaec130ce6ae35203 /source3
parenta45dbdd722132d4a21da7817041601db073ac0bc (diff)
downloadsamba-5916634a3abe193ed68ab2b75dd0cdd0c8fdeb44.tar.gz
samba-5916634a3abe193ed68ab2b75dd0cdd0c8fdeb44.tar.bz2
samba-5916634a3abe193ed68ab2b75dd0cdd0c8fdeb44.zip
Display tdb name of "unknown" in logging debug when tdb has not been named.
(This used to be commit 96c36e51ee4df4c46e5e9e611844dfa83260f606)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/tdbutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c
index 9ca4430136..5f94633d26 100644
--- a/source3/tdb/tdbutil.c
+++ b/source3/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);
}