diff options
Diffstat (limited to 'source4/lib/db_wrap.c')
-rw-r--r-- | source4/lib/db_wrap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c index 77af27ff36..ed235761c9 100644 --- a/source4/lib/db_wrap.c +++ b/source4/lib/db_wrap.c @@ -122,7 +122,8 @@ static void tdb_wrap_log(TDB_CONTEXT *tdb, int level, va_end(ap); if (ptr != NULL) { - DEBUG(level, ("tdb(%s): %s", tdb->name ? tdb->name : "unnamed", ptr)); + const char *name = tdb_name(tdb); + DEBUG(level, ("tdb(%s): %s", name ? name : "unnamed", ptr)); free(ptr); } } |