1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

make sure lp_ctx is initialised

(This used to be commit 3abb33c8bf)
This commit is contained in:
Andrew Tridgell 2008-02-15 15:52:52 +11:00
parent 80362574b8
commit 9e6327dc41

View File

@ -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, "<unc1> <unc2>");
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);