s3:rpcclient: remove unused new_workgroup variable
[kai/samba.git] / 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