From 96c36e51ee4df4c46e5e9e611844dfa83260f606 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 22 Jan 2002 00:36:53 +0000 Subject: [PATCH] Display tdb name of "unknown" in logging debug when tdb has not been named. --- source/tdb/tdbutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }