summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/tools
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/tools')
-rw-r--r--source4/lib/tdb/tools/tdbtool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/tdb/tools/tdbtool.c b/source4/lib/tdb/tools/tdbtool.c
index 903cbe7769..de0ecdd7ca 100644
--- a/source4/lib/tdb/tools/tdbtool.c
+++ b/source4/lib/tdb/tools/tdbtool.c
@@ -203,9 +203,10 @@ static void create_tdb(void)
static void open_tdb(void)
{
struct tdb_logging_context log_ctx;
+ char *tok = get_token(1);
+
log_ctx.log_fn = tdb_log;
- char *tok = get_token(1);
if (!tok) {
help();
return;