s3:rpcclient: remove unused new_workgroup variable
authorStefan Metzmacher <metze@samba.org>
Thu, 9 Jun 2011 12:38:33 +0000 (14:38 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 9 Jun 2011 14:00:28 +0000 (16:00 +0200)
new_workgroup was not initialized but used to overwrite the
value of lp_workgroup().

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jun  9 16:00:28 CEST 2011 on sn-devel-104

source3/rpcclient/rpcclient.c

index c5da092e9a43de5db662be00fec04784c896e365..542862606b2273a2553b4356551af4f08d2ad6f9 100644 (file)
@@ -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