summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-07-11 07:15:21 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:10:02 -0500
commit43f6d7d18906b98cac5fc26e78d2d9ee454fa23c (patch)
tree444e31c0f9f6b53ff936744bae245a3b1585e486 /source4/lib
parente29e30d0688afaaf9d7c26972e82dcb4b3788ccd (diff)
downloadsamba-43f6d7d18906b98cac5fc26e78d2d9ee454fa23c.tar.gz
samba-43f6d7d18906b98cac5fc26e78d2d9ee454fa23c.tar.bz2
samba-43f6d7d18906b98cac5fc26e78d2d9ee454fa23c.zip
r16938: Fix breakage of TDB on VOS (declaration after statement)
Andrew Bartlett (This used to be commit d0ed7cd241e0e7889406f62fd620d8fe39d4498c)
Diffstat (limited to 'source4/lib')
-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 f8105ad941..903cbe7769 100644
--- a/source4/lib/tdb/tools/tdbtool.c
+++ b/source4/lib/tdb/tools/tdbtool.c
@@ -183,10 +183,11 @@ static char *get_token(int startover)
static void create_tdb(void)
{
+ char *tok = get_token(1);
+
struct tdb_logging_context log_ctx;
log_ctx.log_fn = tdb_log;
- char *tok = get_token(1);
if (!tok) {
help();
return;