From d7fe70a698d6f4199c11a413a69084f5d41e9acd Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 9 Jun 2011 14:38:33 +0200 Subject: s3:rpcclient: remove unused new_workgroup variable new_workgroup was not initialized but used to overwrite the value of lp_workgroup(). metze Autobuild-User: Stefan Metzmacher Autobuild-Date: Thu Jun 9 16:00:28 CEST 2011 on sn-devel-104 --- source3/rpcclient/rpcclient.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source3/rpcclient') diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index c5da092e9a..542862606b 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -892,7 +892,6 @@ out_free: struct sockaddr_storage server_ss; NTSTATUS nt_status; static int opt_port = 0; - fstring new_workgroup; int result = 0; TALLOC_CTX *frame = talloc_stackframe(); uint32_t flags = 0; @@ -980,9 +979,6 @@ out_free: if (!lp_load(get_dyn_CONFIGFILE(),True,False,False,True)) fprintf(stderr, "Can't load %s\n", get_dyn_CONFIGFILE()); - if ( strlen(new_workgroup) != 0 ) - lp_set_cmdline("workgroup", new_workgroup ); - /* * Get password * from stdin if necessary -- cgit