From 9e6327dc41c8f3a4b523ccbab869e6b001e1b6df Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 15 Feb 2008 15:52:52 +1100 Subject: make sure lp_ctx is initialised (This used to be commit 3abb33c8bff9aac8ba1ba4783b919732e5159283) --- source4/torture/locktest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index de25c0abc8..039484a8cb 100644 --- a/source4/torture/locktest.c +++ b/source4/torture/locktest.c @@ -528,7 +528,7 @@ static int test_locks(struct loadparm_context *lp_ctx, char *share[NSERVERS]) -_NORETURN_ static void usage(poptContext pc) +static void usage(poptContext pc) { printf("Usage:\n\tlocktest //server1/share1 //server2/share2 [options..]\n"); poptPrintUsage(pc, stdout, 0); @@ -578,6 +578,7 @@ _NORETURN_ static void usage(poptContext pc) poptSetOtherOptionHelp(pc, " "); + lp_ctx = cmdline_lp_ctx; servers[0] = cli_credentials_init(talloc_autofree_context()); servers[1] = cli_credentials_init(talloc_autofree_context()); cli_credentials_guess(servers[0], lp_ctx); -- cgit